Differential D18962 Diff 45486 src/infrastructure/daemon/workers/bulk/PhabricatorWorkerBulkJobType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/daemon/workers/bulk/PhabricatorWorkerBulkJobType.php
| Show All 19 Lines | abstract class PhabricatorWorkerBulkJobType extends Phobject { | ||||
| final public static function getAllJobTypes() { | final public static function getAllJobTypes() { | ||||
| return id(new PhutilClassMapQuery()) | return id(new PhutilClassMapQuery()) | ||||
| ->setAncestorClass(__CLASS__) | ->setAncestorClass(__CLASS__) | ||||
| ->setUniqueMethod('getBulkJobTypeKey') | ->setUniqueMethod('getBulkJobTypeKey') | ||||
| ->execute(); | ->execute(); | ||||
| } | } | ||||
| public function getCurtainActions( | |||||
| PhabricatorUser $viewer, | |||||
| PhabricatorWorkerBulkJob $job) { | |||||
| if ($job->isConfirming()) { | |||||
| $continue_uri = $job->getMonitorURI(); | |||||
| } else { | |||||
| $continue_uri = $job->getDoneURI(); | |||||
| } | |||||
| $continue = id(new PhabricatorActionView()) | |||||
| ->setHref($continue_uri) | |||||
| ->setIcon('fa-arrow-circle-o-right') | |||||
| ->setName(pht('Continue')); | |||||
| return array( | |||||
| $continue, | |||||
| ); | |||||
| } | |||||
| } | } | ||||