code/libraries/joomlatools/library/controller/behavior/editable.php
public function isLocked()
    {
        if($this->getModel()->getState()->isUnique())
        {
            $entity = $this->getModel()->fetch();

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

        return false;
    }
public function isLocked()
    {
        if($this->getModel()->getState()->isUnique())
        {
            $entity = $this->getModel()->fetch();

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

        return false;
    }
public function isLocked ( ) { if ( $ this -> getModel ( ) -> getState ( ) -> isUnique ( ) ) { $ entity = $ this -> getModel ( ) -> fetch ( ) ; if ( $ entity -> isLockable ( ) && $ entity -> isLocked ( ) ) { return true ; } } return false ; }
Check if the resource is locked

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