mirror of
https://github.com/Karaka-Management/oms-Script.git
synced 2026-02-06 16: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
|
abstract class HelperStatus extends Enum
|
||||||
{
|
{
|
||||||
public const INACTIVE = 0;
|
public const INACTIVE = 0;
|
||||||
public const ACTIVE = 1;
|
public const ACTIVE = 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ class Report implements \JsonSerializable
|
||||||
/**
|
/**
|
||||||
* Report source.
|
* Report source.
|
||||||
*
|
*
|
||||||
* @var int
|
* @var int|\Modules\Media\Models\Collection
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
private $source = 0;
|
private $source = 0;
|
||||||
|
|
@ -281,15 +281,20 @@ class Report implements \JsonSerializable
|
||||||
return $this->source;
|
return $this->source;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function toArray() : array
|
public function toArray() : array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'id' => $this->id,
|
'id' => $this->id,
|
||||||
'createdBy' => $this->createdBy,
|
'createdBy' => $this->createdBy,
|
||||||
'createdAt' => $this->createdAt->format('Y-m-d H:i:s'),
|
'createdAt' => $this->createdAt->format('Y-m-d H:i:s'),
|
||||||
'name' => $this->title,
|
'name' => $this->title,
|
||||||
'description' => $this->description,
|
'description' => $this->description,
|
||||||
'status' => $this->status,
|
'status' => $this->status,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,5 +27,5 @@ use phpOMS\Views\View;
|
||||||
class HelperView extends View
|
class HelperView extends View
|
||||||
{
|
{
|
||||||
protected $dataSets = [];
|
protected $dataSets = [];
|
||||||
protected $dataSet = null;
|
protected $dataSet = null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user