| 1 | <?php |
||
| 7 | class WorkflowPublishTargetJob extends AbstractQueuedJob { |
||
|
|
|||
| 8 | |||
| 9 | public function __construct($obj = null, $type = null) { |
||
| 10 | if ($obj) { |
||
| 11 | $this->setObject($obj); |
||
| 12 | $this->publishType = $type ? strtolower($type) : 'publish'; |
||
| 13 | $this->totalSteps = 1; |
||
| 14 | } |
||
| 15 | } |
||
| 16 | |||
| 17 | public function getTitle() { |
||
| 18 | return _t( |
||
| 19 | 'AdvancedWorkflowPublishJob.SCHEDULEJOBTITLE', |
||
| 20 | "Scheduled {type} of {object}", |
||
| 21 | "", |
||
| 22 | array( |
||
| 23 | 'type' => $this->publishType, |
||
| 24 | 'object' => $this->getObject()->Title |
||
| 25 | ) |
||
| 26 | ); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function process() { |
||
| 46 | |||
| 47 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.