/** * Check if the entity is lockable * * @return bool Returns TRUE if the entity is can be locked, FALSE otherwise. */ public function isLockable() { $result = false; if ($this->getView()->getLayout() == 'form') { $result = parent::isLockable(); } return $result; }
public function __construct(Library\ObjectConfig $config) { parent::__construct($config); $this->registerCallback('before.browse', array($this, 'setReferrer')); }