mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-09 21:48:41 +00:00
Adding group status
This commit is contained in:
parent
f8f2582d2e
commit
dd6016bcbd
|
|
@ -71,6 +71,8 @@ class Group implements ArrayableInterface, \JsonSerializable
|
||||||
*/
|
*/
|
||||||
protected $parents = [];
|
protected $parents = [];
|
||||||
|
|
||||||
|
private $status = GroupStatus::INACTIVE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Permissions.
|
* Permissions.
|
||||||
*
|
*
|
||||||
|
|
@ -171,6 +173,16 @@ class Group implements ArrayableInterface, \JsonSerializable
|
||||||
$this->description = $description;
|
$this->description = $description;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getStatus() : int
|
||||||
|
{
|
||||||
|
return $this->status;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setStatus(int $status)
|
||||||
|
{
|
||||||
|
$this->status = $status;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get string representation.
|
* Get string representation.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
38
Account/GroupStatus.php
Normal file
38
Account/GroupStatus.php
Normal file
|
|
@ -0,0 +1,38 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Orange Management
|
||||||
|
*
|
||||||
|
* PHP Version 7.0
|
||||||
|
*
|
||||||
|
* @category TBD
|
||||||
|
* @package TBD
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @copyright 2013 Dennis Eichhorn
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @version 1.0.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
*/
|
||||||
|
namespace phpOMS\Account;
|
||||||
|
|
||||||
|
use phpOMS\Datatypes\Enum;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Accept status enum.
|
||||||
|
*
|
||||||
|
* @category Calendar
|
||||||
|
* @package Modules
|
||||||
|
* @author OMS Development Team <dev@oms.com>
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
* @license OMS License 1.0
|
||||||
|
* @link http://orange-management.com
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
abstract class GroupStatus extends Enum
|
||||||
|
{
|
||||||
|
const ACTIVE = 1;
|
||||||
|
|
||||||
|
const INACTIVE = 2;
|
||||||
|
|
||||||
|
const HIDDEN = 4;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user