Woops, put the bookmark get* functions in the wrong file.

This commit is contained in:
Mikael Nordfeldth 2015-10-11 22:08:28 +02:00
parent 1dac0e709a
commit 0e588bdeca
2 changed files with 18 additions and 18 deletions

View File

@ -429,24 +429,6 @@ class BookmarkPlugin extends MicroAppPlugin
$nli->out->elementEnd('div');
}
public function getDescription()
{
return $this->description;
}
public function getTitle()
{
return $this->title;
}
public function getUrl()
{
if (empty($this->url)) {
throw new InvalidUrlException($this->url);
}
return $this->url;
}
protected function showNoticeContent(Notice $stored, HTMLOutputter $out, Profile $scoped=null)
{
$nb = Bookmark::fromStored($stored);

View File

@ -97,6 +97,24 @@ class Bookmark extends Managed_DataObject
return self::getByPK(array('uri' => $stored->getUri()));
}
public function getDescription()
{
return $this->description;
}
public function getTitle()
{
return $this->title;
}
public function getUrl()
{
if (empty($this->url)) {
throw new InvalidUrlException($this->url);
}
return $this->url;
}
/**
* Get the bookmark that a user made for an URL
*