Changeset View
Changeset View
Standalone View
Standalone View
src/app/SharedFolder.php
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | class SharedFolder extends Model | ||||
// public const STATUS_SUSPENDED = 1 << 2; | // public const STATUS_SUSPENDED = 1 << 2; | ||||
// folder has been deleted | // folder has been deleted | ||||
public const STATUS_DELETED = 1 << 3; | public const STATUS_DELETED = 1 << 3; | ||||
// folder has been created in LDAP | // folder has been created in LDAP | ||||
public const STATUS_LDAP_READY = 1 << 4; | public const STATUS_LDAP_READY = 1 << 4; | ||||
// folder has been created in IMAP | // folder has been created in IMAP | ||||
public const STATUS_IMAP_READY = 1 << 8; | public const STATUS_IMAP_READY = 1 << 8; | ||||
/** @var int The allowed states for this object used in StatusPropertyTrait */ | |||||
private int $allowed_states = self::STATUS_NEW | | |||||
self::STATUS_ACTIVE | | |||||
self::STATUS_DELETED | | |||||
self::STATUS_LDAP_READY | | |||||
self::STATUS_IMAP_READY; | |||||
/** @const array Supported folder type labels */ | /** @const array Supported folder type labels */ | ||||
public const SUPPORTED_TYPES = ['mail', 'event', 'contact', 'task', 'note', 'file']; | public const SUPPORTED_TYPES = ['mail', 'event', 'contact', 'task', 'note', 'file']; | ||||
/** @const string A template for the email attribute on a folder creation */ | /** @const string A template for the email attribute on a folder creation */ | ||||
public const EMAIL_TEMPLATE = '{type}-{id}@{domainName}'; | public const EMAIL_TEMPLATE = '{type}-{id}@{domainName}'; | ||||
/** @var array<string, string> The attributes that should be cast */ | /** @var array<string, string> The attributes that should be cast */ | ||||
protected $casts = [ | protected $casts = [ | ||||
Show All 27 Lines |