mirror of
https://github.com/Karaka-Management/oms-Kanban.git
synced 2026-02-05 14:58:40 +00:00
Add order
This commit is contained in:
parent
84f1127b5f
commit
a2a9f79a29
|
|
@ -45,6 +45,7 @@ class Installer extends InstallerAbstract
|
|||
`kanban_board_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`kanban_board_name` varchar(255) NOT NULL,
|
||||
`kanban_board_status` int(11) NOT NULL,
|
||||
`kanban_board_order` int(11) NOT NULL,
|
||||
`kanban_board_desc` text DEFAULT NULL,
|
||||
`kanban_board_created_at` datetime DEFAULT NULL,
|
||||
`kanban_board_created_by` int(11) DEFAULT NULL,
|
||||
|
|
|
|||
|
|
@ -31,6 +31,8 @@ class KanbanBoard implements \JsonSerializable
|
|||
|
||||
private $status = BoardStatus::ACTIVE;
|
||||
|
||||
private $order = 0;
|
||||
|
||||
private $description = '';
|
||||
|
||||
private $createdBy = 0;
|
||||
|
|
@ -69,6 +71,16 @@ class KanbanBoard implements \JsonSerializable
|
|||
$this->status = $status;
|
||||
}
|
||||
|
||||
public function getOrder() : int
|
||||
{
|
||||
return $this->order;
|
||||
}
|
||||
|
||||
public function setOrder(int $order) /* : void */
|
||||
{
|
||||
$this->order = $order;
|
||||
}
|
||||
|
||||
public function getDescription() : string
|
||||
{
|
||||
return $this->description;
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ class KanbanBoardMapper extends DataMapperAbstract
|
|||
'kanban_board_name' => ['name' => 'kanban_board_name', 'type' => 'string', 'internal' => 'name'],
|
||||
'kanban_board_desc' => ['name' => 'kanban_board_desc', 'type' => 'string', 'internal' => 'description'],
|
||||
'kanban_board_status' => ['name' => 'kanban_board_status', 'type' => 'int', 'internal' => 'status'],
|
||||
'kanban_board_order' => ['name' => 'kanban_board_order', 'type' => 'int', 'internal' => 'order'],
|
||||
'kanban_board_created_by' => ['name' => 'kanban_board_created_by', 'type' => 'int', 'internal' => 'createdBy'],
|
||||
'kanban_board_created_at' => ['name' => 'kanban_board_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'],
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user