mirror of
https://github.com/Karaka-Management/oms-Script.git
synced 2026-01-13 21:38:41 +00:00
table test and bug style fixes
This commit is contained in:
parent
63903a9d78
commit
bbb90428fc
|
|
@ -27,5 +27,5 @@ use phpOMS\Stdlib\Base\Enum;
|
|||
abstract class HelperStatus extends Enum
|
||||
{
|
||||
public const INACTIVE = 0;
|
||||
public const ACTIVE = 1;
|
||||
public const ACTIVE = 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ class Report implements \JsonSerializable
|
|||
/**
|
||||
* Report source.
|
||||
*
|
||||
* @var int
|
||||
* @var int|\Modules\Media\Models\Collection
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $source = 0;
|
||||
|
|
@ -281,15 +281,20 @@ class Report implements \JsonSerializable
|
|||
return $this->source;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function toArray() : array
|
||||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'createdBy' => $this->createdBy,
|
||||
'createdAt' => $this->createdAt->format('Y-m-d H:i:s'),
|
||||
'name' => $this->title,
|
||||
'id' => $this->id,
|
||||
'createdBy' => $this->createdBy,
|
||||
'createdAt' => $this->createdAt->format('Y-m-d H:i:s'),
|
||||
'name' => $this->title,
|
||||
'description' => $this->description,
|
||||
'status' => $this->status,
|
||||
'status' => $this->status,
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,5 +27,5 @@ use phpOMS\Views\View;
|
|||
class HelperView extends View
|
||||
{
|
||||
protected $dataSets = [];
|
||||
protected $dataSet = null;
|
||||
protected $dataSet = null;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user