Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106475232
PhabricatorNotificationConfigOptions.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, Mar 26, 01:26
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Mar 28, 01:26 (2 d)
Engine
blob
Format
Raw Data
Handle
25155209
Attached To
rPH Phabricator
PhabricatorNotificationConfigOptions.php
View Options
<?php
final
class
PhabricatorNotificationConfigOptions
extends
PhabricatorApplicationConfigOptions
{
public
function
getName
()
{
return
pht
(
'Notifications'
);
}
public
function
getDescription
()
{
return
pht
(
'Configure real-time notifications.'
);
}
public
function
getIcon
()
{
return
'fa-bell'
;
}
public
function
getGroup
()
{
return
'core'
;
}
public
function
getOptions
()
{
$servers_type
=
'custom:PhabricatorNotificationServersConfigOptionType'
;
$servers_help
=
$this
->
deformat
(
pht
(
<<<EOTEXT
Provide a list of notification servers to enable real-time notifications.
For help setting up notification servers, see **[[ %s | %s ]]** in the
documentation.
EOTEXT
,
PhabricatorEnv
::
getDoclink
(
'Notifications User Guide: Setup and Configuration'
),
pht
(
'Notifications User Guide: Setup and Configuration'
)));
$servers_example1
=
array
(
array
(
'type'
=>
'client'
,
'host'
=>
'phabricator.mycompany.com'
,
'port'
=>
22280
,
'protocol'
=>
'https'
,
),
array
(
'type'
=>
'admin'
,
'host'
=>
'127.0.0.1'
,
'port'
=>
22281
,
'protocol'
=>
'http'
,
),
);
$servers_example1
=
id
(
new
PhutilJSON
())->
encodeAsList
(
$servers_example1
);
return
array
(
$this
->
newOption
(
'notification.servers'
,
$servers_type
,
array
())
->
setSummary
(
pht
(
'Configure real-time notifications.'
))
->
setDescription
(
$servers_help
)
->
addExample
(
$servers_example1
,
pht
(
'Simple Example'
)),
);
}
}
Event Timeline
Log In to Comment