}
}
- public static function getByUri($uri)
- {
- $notice = new Notice();
- $notice->uri = $uri;
- if (!$notice->find(true)) {
- throw new NoResultException($notice);
- }
- return $notice;
- }
-
/**
* Extract #hashtags from this notice's content and save them to the database.
*/
return $this->uri;
}
- static function getByUri($uri)
- {
- $user = new User();
- $user->uri = $uri;
- if (!$user->find(true)) {
- throw new NoResultException($user);
- }
- return $user;
- }
-
public function getNickname()
{
return $this->getProfile()->getNickname();