Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/storage/PhabricatorUser.php
Show First 20 Lines • Show All 603 Lines • ▼ Show 20 Lines | public static function validateUsername($username) { | ||||
return (bool)preg_match('/^[a-zA-Z0-9._-]*[a-zA-Z0-9_-]$/', $username); | return (bool)preg_match('/^[a-zA-Z0-9._-]*[a-zA-Z0-9_-]$/', $username); | ||||
} | } | ||||
public static function getDefaultProfileImageURI() { | public static function getDefaultProfileImageURI() { | ||||
return celerity_get_resource_uri('/rsrc/image/avatar.png'); | return celerity_get_resource_uri('/rsrc/image/avatar.png'); | ||||
} | } | ||||
public function attachStatus(PhabricatorUserStatus $status) { | public function attachStatus(PhabricatorCalendarEvent $status) { | ||||
$this->status = $status; | $this->status = $status; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getStatus() { | public function getStatus() { | ||||
$this->assertAttached($this->status); | return $this->assertAttached($this->status); | ||||
return $this->status; | |||||
} | } | ||||
public function hasStatus() { | public function hasStatus() { | ||||
return $this->status !== self::ATTACHABLE; | return $this->status !== self::ATTACHABLE; | ||||
} | } | ||||
public function attachProfileImageURI($uri) { | public function attachProfileImageURI($uri) { | ||||
$this->profileImage = $uri; | $this->profileImage = $uri; | ||||
▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines |