Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92698932
PhabricatorEditEngineExtension.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 22, 21:47
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Nov 24, 21:47 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
22489762
Attached To
rPH Phabricator
PhabricatorEditEngineExtension.php
View Options
<?php
abstract
class
PhabricatorEditEngineExtension
extends
Phobject
{
private
$viewer
;
final
public
function
getExtensionKey
()
{
return
$this
->
getPhobjectClassConstant
(
'EXTENSIONKEY'
);
}
final
public
function
setViewer
(
$viewer
)
{
$this
->
viewer
=
$viewer
;
return
$this
;
}
final
public
function
getViewer
()
{
return
$this
->
viewer
;
}
public
function
getExtensionPriority
()
{
return
1000
;
}
abstract
public
function
isExtensionEnabled
();
abstract
public
function
getExtensionName
();
abstract
public
function
supportsObject
(
PhabricatorEditEngine
$engine
,
PhabricatorApplicationTransactionInterface
$object
);
abstract
public
function
buildCustomEditFields
(
PhabricatorEditEngine
$engine
,
PhabricatorApplicationTransactionInterface
$object
);
public
function
didBuildCustomEditFields
(
PhabricatorEditEngine
$engine
,
PhabricatorApplicationTransactionInterface
$object
,
array
$fields
)
{
return
;
}
final
public
static
function
getAllExtensions
()
{
return
id
(
new
PhutilClassMapQuery
())
->
setAncestorClass
(
__CLASS__
)
->
setUniqueMethod
(
'getExtensionKey'
)
->
setSortMethod
(
'getExtensionPriority'
)
->
execute
();
}
final
public
static
function
getAllEnabledExtensions
()
{
$extensions
=
self
::
getAllExtensions
();
foreach
(
$extensions
as
$key
=>
$extension
)
{
if
(!
$extension
->
isExtensionEnabled
())
{
unset
(
$extensions
[
$key
]);
}
}
return
$extensions
;
}
}
Event Timeline
Log In to Comment