public function altUrl(Core_Model_Item_Abstract $item) { $db = Engine_Db_Table::getDefaultAdapter(); if (isset($this->_memo[$item->getGuid()])) { return $this->_memo[$item->getGuid()]; } $url = $db->select()->from('engine4_seo_pages', 'url')->where('page_id = ?', $item->getGuid())->query()->fetchColumn(); $this->_memo[$item->getGuid()] = $url; return $url; }
public function isOwner(Core_Model_Item_Abstract $owner) { // A user only can be owned by self return $owner->getGuid(false) === $this->getGuid(false); }
/** * Checks if the passed item has the same guid as the object * * @param Core_Model_Item_Abstract $item * @return bool */ public function isSelf(Core_Model_Item_Abstract $item) { return $item->getGuid() === $this->getGuid(); }
public function setActivityObject(Core_Model_Item_Abstract $object) { $this->subject->setValue($object->getGuid(false)); return $this; }