Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97893937
NuanceQueueEditEngine.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
Tue, Jan 7, 07:16
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Jan 9, 07:16 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23433273
Attached To
rPH Phabricator
NuanceQueueEditEngine.php
View Options
<?php
final
class
NuanceQueueEditEngine
extends
PhabricatorEditEngine
{
const
ENGINECONST
=
'nuance.queue'
;
public
function
isEngineConfigurable
()
{
return
false
;
}
public
function
getEngineName
()
{
return
pht
(
'Nuance Queues'
);
}
public
function
getSummaryHeader
()
{
return
pht
(
'Edit Nuance Queue Configurations'
);
}
public
function
getSummaryText
()
{
return
pht
(
'This engine is used to edit Nuance queues.'
);
}
public
function
getEngineApplicationClass
()
{
return
'PhabricatorNuanceApplication'
;
}
protected
function
newEditableObject
()
{
return
NuanceQueue
::
initializeNewQueue
();
}
protected
function
newObjectQuery
()
{
return
new
NuanceQueueQuery
();
}
protected
function
getObjectCreateTitleText
(
$object
)
{
return
pht
(
'Create Queue'
);
}
protected
function
getObjectCreateButtonText
(
$object
)
{
return
pht
(
'Create Queue'
);
}
protected
function
getObjectEditTitleText
(
$object
)
{
return
pht
(
'Edit Queue: %s'
,
$object
->
getName
());
}
protected
function
getObjectEditShortText
(
$object
)
{
return
pht
(
'Edit Queue'
);
}
protected
function
getObjectCreateShortText
()
{
return
pht
(
'Create Queue'
);
}
protected
function
getEditorURI
()
{
return
'/nuance/queue/edit/'
;
}
protected
function
getObjectCreateCancelURI
(
$object
)
{
return
'/nuance/queue/'
;
}
protected
function
getObjectViewURI
(
$object
)
{
return
$object
->
getURI
();
}
protected
function
buildCustomEditFields
(
$object
)
{
return
array
(
id
(
new
PhabricatorTextEditField
())
->
setKey
(
'name'
)
->
setLabel
(
pht
(
'Name'
))
->
setDescription
(
pht
(
'Name of the queue.'
))
->
setTransactionType
(
NuanceQueueTransaction
::
TYPE_NAME
)
->
setIsRequired
(
true
)
->
setValue
(
$object
->
getName
()),
);
}
}
Event Timeline
Log In to Comment