Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92452794
PhabricatorDisqusConfigOptions.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 20, 10:38
Size
2 KB
Mime Type
text/x-php
Expires
Fri, Nov 22, 10:38 (2 d)
Engine
blob
Format
Raw Data
Handle
22443897
Attached To
rPH Phabricator
PhabricatorDisqusConfigOptions.php
View Options
<?php
final
class
PhabricatorDisqusConfigOptions
extends
PhabricatorApplicationConfigOptions
{
public
function
getName
()
{
return
pht
(
"Integration with Disqus"
);
}
public
function
getDescription
()
{
return
pht
(
"Disqus authentication and integration options."
);
}
public
function
getOptions
()
{
return
array
(
$this
->
newOption
(
'disqus.auth-enabled'
,
'bool'
,
false
)
->
setOptions
(
array
(
pht
(
"Disable Disqus Authentication"
),
pht
(
"Enable Disqus Authentication"
),
))
->
setDescription
(
pht
(
'Allow users to login to Phabricator using Disqus credentials.'
)),
$this
->
newOption
(
'disqus.registration-enabled'
,
'bool'
,
true
)
->
setOptions
(
array
(
pht
(
"Disable Disqus Registration"
),
pht
(
"Enable Disqus Registration"
),
))
->
setDescription
(
pht
(
'Allow users to create new Phabricator accounts using Disqus '
.
'credentials.'
)),
$this
->
newOption
(
'disqus.auth-permanent'
,
'bool'
,
false
)
->
setOptions
(
array
(
pht
(
"Allow Disqus Account Unlinking"
),
pht
(
"Permanently Bind Disqus Accounts"
),
))
->
setDescription
(
pht
(
'Are Phabricator accounts permanently bound to Disqus '
.
'accounts?'
)),
$this
->
newOption
(
'disqus.application-id'
,
'string'
,
null
)
->
setDescription
(
pht
(
'Disqus "Client ID" to use for Disqus API access.'
)),
$this
->
newOption
(
'disqus.application-secret'
,
'string'
,
null
)
->
setDescription
(
pht
(
'Disqus "Secret" to use for Diqsus API access.'
)),
$this
->
newOption
(
'disqus.shortname'
,
'string'
,
null
)
->
setSummary
(
pht
(
"Shortname for Disqus comment widget."
))
->
setDescription
(
pht
(
"Website shortname to use for Disqus comment widget in Phame. "
.
"For more information, see:
\n\n
"
.
"[[http://docs.disqus.com/help/4/ | Disqus Quick Start Guide]]
\n
"
.
"[[http://docs.disqus.com/help/68/ | Information on Shortnames]]"
)),
);
}
}
Event Timeline
Log In to Comment