code/controller/behavior/editable.php
public function isLockable()
    {
        $controller = $this->getMixer();

        if($controller instanceof ControllerModellable)
        {
            if($this->getModel()->getState()->isUnique())
            {
                $entity = $this->getModel()->fetch();

                if($entity->isLockable()) {
                    return true;
                }
            }
        }

        return false;
    }
public function isLockable()
    {
        $controller = $this->getMixer();

        if($controller instanceof ControllerModellable)
        {
            if($this->getModel()->getState()->isUnique())
            {
                $entity = $this->getModel()->fetch();

                if($entity->isLockable()) {
                    return true;
                }
            }
        }

        return false;
    }
public function isLockable ( ) { $ controller = $ this -> getMixer ( ) ; if ( $ controller instanceof ControllerModellable ) { if ( $ this -> getModel ( ) -> getState ( ) -> isUnique ( ) ) { $ entity = $ this -> getModel ( ) -> fetch ( ) ; if ( $ entity -> isLockable ( ) ) { return true ; } } } return false ; }
Check if the resource is lockable

@return bool Returns TRUE if the resource is can be locked, FALSE otherwise.
Check if the resource is lockable