Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F680674
AlmanacPropertiesEditEngineExtension.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
AlmanacPropertiesEditEngineExtension.php
View Options
<?php
final
class
AlmanacPropertiesEditEngineExtension
extends
PhabricatorEditEngineExtension
{
const
EXTENSIONKEY
=
'almanac.properties'
;
public
function
isExtensionEnabled
()
{
return
true
;
}
public
function
getExtensionName
()
{
return
pht
(
'Almanac Properties'
);
}
public
function
supportsObject
(
PhabricatorEditEngine
$engine
,
PhabricatorApplicationTransactionInterface
$object
)
{
return
(
$object
instanceof
AlmanacPropertyInterface
);
}
public
function
buildCustomEditFields
(
PhabricatorEditEngine
$engine
,
PhabricatorApplicationTransactionInterface
$object
)
{
return
array
(
id
(
new
AlmanacSetPropertyEditField
())
->
setKey
(
'property.set'
)
->
setTransactionType
(
$object
->
getAlmanacPropertySetTransactionType
())
->
setConduitDescription
(
pht
(
'Pass a map of values to set one or more properties.'
))
->
setConduitTypeDescription
(
pht
(
'Map of property names to values.'
))
->
setIsFormField
(
false
),
id
(
new
AlmanacDeletePropertyEditField
())
->
setKey
(
'property.delete'
)
->
setTransactionType
(
$object
->
getAlmanacPropertyDeleteTransactionType
())
->
setConduitDescription
(
pht
(
'Pass a list of property names to delete properties.'
))
->
setConduitTypeDescription
(
pht
(
'List of property names.'
))
->
setIsFormField
(
false
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 27, 9:23 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
166292
Default Alt Text
AlmanacPropertiesEditEngineExtension.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment