Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106065411
PhabricatorMetaMTAController.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
Sat, Mar 22, 00:34
Size
667 B
Mime Type
text/x-php
Expires
Mon, Mar 24, 00:34 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25107159
Attached To
rPH Phabricator
PhabricatorMetaMTAController.php
View Options
<?php
abstract
class
PhabricatorMetaMTAController
extends
PhabricatorController
{
public
function
shouldRequireAdmin
()
{
return
true
;
}
public
function
buildSideNavView
()
{
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
$nav
->
addLabel
(
'Mail Logs'
);
$nav
->
addFilter
(
'sent'
,
'Sent Mail'
,
$this
->
getApplicationURI
());
$nav
->
addFilter
(
'received'
,
'Received Mail'
);
if
(
$this
->
getRequest
()->
getUser
()->
getIsAdmin
())
{
$nav
->
addLabel
(
'Diagnostics'
);
$nav
->
addFilter
(
'send'
,
'Send Test'
);
$nav
->
addFilter
(
'receive'
,
'Receive Test'
);
}
return
$nav
;
}
}
Event Timeline
Log In to Comment