Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93582925
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
Fri, Nov 29, 22:25
Size
667 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 22:25 (2 d)
Engine
blob
Format
Raw Data
Handle
22670217
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