Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2990316
HarbormasterBuildableEditEngine.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
HarbormasterBuildableEditEngine.php
View Options
<?php
final
class
HarbormasterBuildableEditEngine
extends
PhabricatorEditEngine
{
const
ENGINECONST
=
'harbormaster.buildable'
;
public
function
isEngineConfigurable
(
)
{
return
false
;
}
public
function
getEngineName
(
)
{
return
pht
(
'Harbormaster Buildables'
)
;
}
public
function
getSummaryHeader
(
)
{
return
pht
(
'Edit Harbormaster Buildable Configurations'
)
;
}
public
function
getSummaryText
(
)
{
return
pht
(
'This engine is used to edit Harbormaster buildables.'
)
;
}
public
function
getEngineApplicationClass
(
)
{
return
PhabricatorHarbormasterApplication
::
class
;
}
protected
function
newEditableObject
(
)
{
$viewer
=
$this
->
getViewer
(
)
;
return
HarbormasterBuildable
::
initializeNewBuildable
(
$viewer
)
;
}
protected
function
newObjectQuery
(
)
{
return
new
HarbormasterBuildableQuery
(
)
;
}
protected
function
newEditableObjectForDocumentation
(
)
{
$object
=
new
DifferentialRevision
(
)
;
return
$this
->
newEditableObject
(
)
->
attachBuildableObject
(
$object
)
;
}
protected
function
getObjectCreateTitleText
(
$object
)
{
return
pht
(
'Create Buildable'
)
;
}
protected
function
getObjectCreateButtonText
(
$object
)
{
return
pht
(
'Create Buildable'
)
;
}
protected
function
getObjectEditTitleText
(
$object
)
{
return
pht
(
'Edit Buildable: %s'
,
$object
->
getName
(
)
)
;
}
protected
function
getObjectEditShortText
(
$object
)
{
return
pht
(
'Edit Buildable'
)
;
}
protected
function
getObjectCreateShortText
(
)
{
return
pht
(
'Create Buildable'
)
;
}
protected
function
getObjectName
(
)
{
return
pht
(
'Buildable'
)
;
}
protected
function
getEditorURI
(
)
{
return
'/harbormaster/buildable/edit/'
;
}
protected
function
getObjectCreateCancelURI
(
$object
)
{
return
'/harbormaster/'
;
}
protected
function
getObjectViewURI
(
$object
)
{
return
$object
->
getURI
(
)
;
}
protected
function
buildCustomEditFields
(
$object
)
{
return
array
(
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Feb 22, 21:48 (1 d, 1 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1132434
Default Alt Text
HarbormasterBuildableEditEngine.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment