Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2894638
PhabricatorEditorExtension.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
PhabricatorEditorExtension.php
View Options
<?php
abstract
class
PhabricatorEditorExtension
extends
Phobject
{
private
$viewer
;
private
$editor
;
private
$object
;
final
public
function
getExtensionKey
(
)
{
return
$this
->
getPhobjectClassConstant
(
'EXTENSIONKEY'
)
;
}
final
public
function
setEditor
(
PhabricatorApplicationTransactionEditor
$editor
)
{
$this
->
editor
=
$editor
;
return
$this
;
}
final
public
function
getEditor
(
)
{
return
$this
->
editor
;
}
final
public
function
setViewer
(
PhabricatorUser
$viewer
)
{
$this
->
viewer
=
$viewer
;
return
$this
;
}
final
public
function
getViewer
(
)
{
return
$this
->
viewer
;
}
final
public
function
setObject
(
PhabricatorApplicationTransactionInterface
$object
)
{
$this
->
object
=
$object
;
return
$this
;
}
final
public
static
function
getAllExtensions
(
)
{
return
id
(
new
PhutilClassMapQuery
(
)
)
->
setAncestorClass
(
__CLASS__
)
->
setUniqueMethod
(
'getExtensionKey'
)
->
execute
(
)
;
}
abstract
public
function
getExtensionName
(
)
;
public
function
supportsObject
(
PhabricatorApplicationTransactionEditor
$editor
,
PhabricatorApplicationTransactionInterface
$object
)
{
return
true
;
}
public
function
validateTransactions
(
$object
,
array
$xactions
)
{
return
array
(
)
;
}
final
protected
function
newTransactionError
(
PhabricatorApplicationTransaction
$xaction
,
$title
,
$message
)
{
return
new
PhabricatorApplicationTransactionValidationError
(
$xaction
->
getTransactionType
(
)
,
$title
,
$message
,
$xaction
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 20:10 (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1119100
Default Alt Text
PhabricatorEditorExtension.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment