public function isLocked(core_kernel_classes_Resource $resource)
    {       
        $values = $resource->getPropertyValues($this->getLockProperty());

        if ((is_array($values)) && (count($values)>0)) {
            return true;
        }
        return false;
    }
public function isLocked(core_kernel_classes_Resource $resource)
    {       
        $values = $resource->getPropertyValues($this->getLockProperty());

        if ((is_array($values)) && (count($values)>0)) {
            return true;
        }
        return false;
    }
public function isLocked ( core_kernel_classes_Resource $ resource ) { $ values = $ resource -> getPropertyValues ( $ this -> getLockProperty ( ) ) ; if ( ( is_array ( $ values ) ) && ( count ( $ values ) > 0 ) ) { return true ; } return false ; }
return true is the resource is locked, else otherwise
@return boolean
return true is the resource is locked else otherwise