Managed_DataObject now has getByUri()

This commit is contained in:
Mikael Nordfeldth 2016-06-25 11:58:36 +02:00
parent 42a62da764
commit f93f02f424
2 changed files with 0 additions and 20 deletions

View File

@ -336,16 +336,6 @@ class Notice extends Managed_DataObject
} }
} }
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. * Extract #hashtags from this notice's content and save them to the database.
*/ */

View File

@ -140,16 +140,6 @@ class User extends Managed_DataObject
return $this->uri; 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() public function getNickname()
{ {
return $this->getProfile()->getNickname(); return $this->getProfile()->getNickname();