Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F547076
PhabricatorGuidanceEngineExtension.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
974 B
Referenced Files
None
Subscribers
None
PhabricatorGuidanceEngineExtension.php
View Options
<?php
abstract
class
PhabricatorGuidanceEngineExtension
extends
Phobject
{
final
public
function
getExtensionKey
()
{
return
$this
->
getPhobjectClassConstant
(
'GUIDANCEKEY'
,
64
);
}
abstract
public
function
canGenerateGuidance
(
PhabricatorGuidanceContext
$context
);
abstract
public
function
generateGuidance
(
PhabricatorGuidanceContext
$context
);
public
function
didGenerateGuidance
(
PhabricatorGuidanceContext
$context
,
array
$guidance
)
{
return
$guidance
;
}
final
protected
function
newGuidance
(
$key
)
{
return
id
(
new
PhabricatorGuidanceMessage
())
->
setKey
(
$key
);
}
final
protected
function
newWarning
(
$key
)
{
return
$this
->
newGuidance
(
$key
)
->
setSeverity
(
PhabricatorGuidanceMessage
::
SEVERITY_WARNING
);
}
final
public
static
function
getAllExtensions
()
{
return
id
(
new
PhutilClassMapQuery
())
->
setAncestorClass
(
__CLASS__
)
->
setUniqueMethod
(
'getExtensionKey'
)
->
execute
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:26 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
120720
Default Alt Text
PhabricatorGuidanceEngineExtension.php (974 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment