Source of file ResqueJob.php
Size: 1,042 Bytes - Last Modified: 2021-12-23T10:29:15+00:00
/var/www/docs.ssmods.com/process/src/code/queuereport/ResqueJob.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 | <?php class ResqueJob extends ViewableData { /** * * @var array */ protected $record = array(); /** * * @param array $data */ public function __construct($data = array()) { $this->record = $data; } /** * * @return \FieldList */ public function getCMSFields() { $fieldList = new FieldList(); $fieldList->push(new ReadonlyField('Name', 'Name', $this->Name)); return $fieldList; } /** * * @return string */ public function i18n_singular_name() { return 'Resque queue'; } /** * * @return boolean */ public function canView() { return true; } /** * * @return bool */ public function canEdit() { return false; } /** * * @return bool */ public function candelete() { return false; } /** * * @return bool */ public function cancreate() { return false; } /** * * @param string $property * @return mixed */ public function __get($property) { if(isset($this->record[$property])) { return $this->record[$property]; } return null; } } |