Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2894131
PhabricatorWorkerTriggerPHIDType.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
826 B
Referenced Files
None
Subscribers
None
PhabricatorWorkerTriggerPHIDType.php
View Options
<?php
final
class
PhabricatorWorkerTriggerPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'TRIG'
;
public
function
getTypeName
(
)
{
return
pht
(
'Trigger'
)
;
}
public
function
newObject
(
)
{
return
new
PhabricatorWorkerTrigger
(
)
;
}
public
function
getPHIDTypeApplicationClass
(
)
{
return
PhabricatorDaemonsApplication
::
class
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhabricatorWorkerTriggerQuery
(
)
)
->
withPHIDs
(
$phids
)
;
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$trigger
=
$objects
[
$phid
]
;
$id
=
$trigger
->
getID
(
)
;
$handle
->
setName
(
pht
(
'Trigger %d'
,
$id
)
)
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 19:26 (1 d, 11 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1111780
Default Alt Text
PhabricatorWorkerTriggerPHIDType.php (826 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment