Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93586659
PhabricatorGuideModule.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, 23:12
Size
840 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 23:12 (2 d)
Engine
blob
Format
Raw Data
Handle
22666321
Attached To
rPH Phabricator
PhabricatorGuideModule.php
View Options
<?php
abstract
class
PhabricatorGuideModule
extends
Phobject
{
abstract
public
function
getModuleKey
();
abstract
public
function
getModuleName
();
abstract
public
function
getModulePosition
();
abstract
public
function
getIsModuleEnabled
();
abstract
public
function
renderModuleStatus
(
AphrontRequest
$request
);
final
public
static
function
getAllModules
()
{
return
id
(
new
PhutilClassMapQuery
())
->
setAncestorClass
(
__CLASS__
)
->
setUniqueMethod
(
'getModuleKey'
)
->
setSortMethod
(
'getModulePosition'
)
->
execute
();
}
final
public
static
function
getEnabledModules
()
{
return
id
(
new
PhutilClassMapQuery
())
->
setAncestorClass
(
__CLASS__
)
->
setUniqueMethod
(
'getModuleKey'
)
->
setSortMethod
(
'getModulePosition'
)
->
setFilterMethod
(
'getIsModuleEnabled'
)
->
execute
();
}
}
Event Timeline
Log In to Comment