Woops, put the bookmark get* functions in the wrong file.
This commit is contained in:
parent
1dac0e709a
commit
0e588bdeca
@ -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);
|
||||
|
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user