getByUri added to Notice for future use

This commit is contained in:
Mikael Nordfeldth 2014-01-12 22:37:41 +01:00
parent 4759365293
commit 15c95dc415
1 changed files with 5 additions and 0 deletions

View File

@ -216,6 +216,11 @@ class Notice extends Managed_DataObject
return $this->url ?: $this->uri;
}
public function getByUri($uri)
{
return Notice::getKV('uri', $uri);
}
/**
* Extract #hashtags from this notice's content and save them to the database.
*/