Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F804783
HarbormasterBuildEditEngine.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
HarbormasterBuildEditEngine.php
View Options
<?php
final
class
HarbormasterBuildEditEngine
extends
PhabricatorEditEngine
{
const
ENGINECONST
=
'harbormaster.build'
;
public
function
isEngineConfigurable
()
{
return
false
;
}
public
function
getEngineName
()
{
return
pht
(
'Harbormaster Builds'
);
}
public
function
getSummaryHeader
()
{
return
pht
(
'Edit Harbormaster Build Configurations'
);
}
public
function
getSummaryText
()
{
return
pht
(
'This engine is used to edit Harbormaster builds.'
);
}
public
function
getEngineApplicationClass
()
{
return
'PhabricatorHarbormasterApplication'
;
}
protected
function
newEditableObject
()
{
$viewer
=
$this
->
getViewer
();
return
HarbormasterBuild
::
initializeNewBuild
(
$viewer
);
}
protected
function
newObjectQuery
()
{
return
new
HarbormasterBuildQuery
();
}
protected
function
newEditableObjectForDocumentation
()
{
$object
=
new
DifferentialRevision
();
$buildable
=
id
(
new
HarbormasterBuildable
())
->
attachBuildableObject
(
$object
);
return
$this
->
newEditableObject
()
->
attachBuildable
(
$buildable
);
}
protected
function
getObjectCreateTitleText
(
$object
)
{
return
pht
(
'Create Build'
);
}
protected
function
getObjectCreateButtonText
(
$object
)
{
return
pht
(
'Create Build'
);
}
protected
function
getObjectEditTitleText
(
$object
)
{
return
pht
(
'Edit Build: %s'
,
$object
->
getName
());
}
protected
function
getObjectEditShortText
(
$object
)
{
return
pht
(
'Edit Build'
);
}
protected
function
getObjectCreateShortText
()
{
return
pht
(
'Create Build'
);
}
protected
function
getObjectName
()
{
return
pht
(
'Build'
);
}
protected
function
getEditorURI
()
{
return
'/harbormaster/build/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
Thu, May 29, 12:50 PM (20 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
197282
Default Alt Text
HarbormasterBuildEditEngine.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment