Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80918865
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
Tue, Sep 3, 06:19
Size
840 B
Mime Type
text/x-php
Expires
Thu, Sep 5, 06:19 (2 d)
Engine
blob
Format
Raw Data
Handle
20433789
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