芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/cloud.pulsehost.co.uk/modules/Contacts/Models/ContactCard.php
'array', 'Auto' => 'boolean', 'Shared' => 'boolean', 'IsTeam' => 'boolean', ]; protected $appends = [ 'UUID', 'AgeScore', 'UserId', 'Storage', "DateModified", "ETag", 'ViewEmail', 'Uri', ]; public function getUUIDAttribute() { return $this->attributes['UUID']; } public function getAgeScoreAttribute() { return round($this->attributes['AgeScore']); } public function getUserIdAttribute() { return $this->attributes['UserId']; } public function getStorageAttribute() { return $this->attributes['Storage']; } public function getDateModifiedAttribute() { return $this->attributes['DateModified']; } public function getETagAttribute() { return $this->attributes['ETag']; } public function getUriAttribute() { return $this->attributes['Uri']; } /** * Returns value of email that is specified as primary. * @return string */ protected function getViewEmailAttribute() { switch ((int) $this->PrimaryEmail) { default: case \Aurora\Modules\Contacts\Enums\PrimaryEmail::Personal: return (string) $this->PersonalEmail; case \Aurora\Modules\Contacts\Enums\PrimaryEmail::Business: return (string) $this->BusinessEmail; case \Aurora\Modules\Contacts\Enums\PrimaryEmail::Other: return (string) $this->OtherEmail; } } }