Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78379231
PhabricatorWorkerBulkJobPHIDType.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, Aug 20, 11:19
Size
815 B
Mime Type
text/x-php
Expires
Thu, Aug 22, 11:19 (2 d)
Engine
blob
Format
Raw Data
Handle
20036070
Attached To
rPH Phabricator
PhabricatorWorkerBulkJobPHIDType.php
View Options
<?php
final
class
PhabricatorWorkerBulkJobPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'BULK'
;
public
function
getTypeName
()
{
return
pht
(
'Bulk Job'
);
}
public
function
newObject
()
{
return
new
PhabricatorWorkerBulkJob
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorDaemonsApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhabricatorWorkerBulkJobQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$job
=
$objects
[
$phid
];
$id
=
$job
->
getID
();
$handle
->
setName
(
pht
(
'Bulk Job %d'
,
$id
));
}
}
}
Event Timeline
Log In to Comment