Esempio n. 1
0
 /**
  * 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;
 }
Esempio n. 2
0
 public function __construct(Library\ObjectConfig $config)
 {
     parent::__construct($config);
     $this->registerCallback('before.browse', array($this, 'setReferrer'));
 }