Changeset View
Changeset View
Standalone View
Standalone View
src/app/Group.php
Show All 11 Lines | |||||
use Illuminate\Database\Eloquent\SoftDeletes; | use Illuminate\Database\Eloquent\SoftDeletes; | ||||
/** | /** | ||||
* The eloquent definition of a Group. | * The eloquent definition of a Group. | ||||
* | * | ||||
* @property int $id The group identifier | * @property int $id The group identifier | ||||
* @property string $email An email address | * @property string $email An email address | ||||
* @property string $members A comma-separated list of email addresses | * @property string $members A comma-separated list of email addresses | ||||
* @property string $name The group name | |||||
* @property int $status The group status | * @property int $status The group status | ||||
* @property int $tenant_id Tenant identifier | * @property int $tenant_id Tenant identifier | ||||
*/ | */ | ||||
class Group extends Model | class Group extends Model | ||||
{ | { | ||||
use BelongsToTenantTrait; | use BelongsToTenantTrait; | ||||
use EntitleableTrait; | use EntitleableTrait; | ||||
use GroupConfigTrait; | use GroupConfigTrait; | ||||
Show All 9 Lines | class Group extends Model | ||||
public const STATUS_SUSPENDED = 1 << 2; | public const STATUS_SUSPENDED = 1 << 2; | ||||
// group has been deleted | // group has been deleted | ||||
public const STATUS_DELETED = 1 << 3; | public const STATUS_DELETED = 1 << 3; | ||||
// group has been created in LDAP | // group has been created in LDAP | ||||
public const STATUS_LDAP_READY = 1 << 4; | public const STATUS_LDAP_READY = 1 << 4; | ||||
protected $fillable = [ | protected $fillable = [ | ||||
'email', | 'email', | ||||
'members', | |||||
'name', | |||||
'status', | 'status', | ||||
'members' | |||||
]; | ]; | ||||
/** | /** | ||||
* Assign the group to a wallet. | * Assign the group to a wallet. | ||||
* | * | ||||
* @param \App\Wallet $wallet The wallet | * @param \App\Wallet $wallet The wallet | ||||
* | * | ||||
* @return \App\Group Self | * @return \App\Group Self | ||||
▲ Show 20 Lines • Show All 211 Lines • Show Last 20 Lines |