public function getLockData(core_kernel_classes_Resource $resource)
    {
        $values = $resource->getPropertyValues($this->getLockProperty());
        if ((is_array($values)) && (count($values)==1)) {
            return OntoLockData::getLockData(array_pop($values));
        } else {
            return null;
        }

    }
public function getLockData(core_kernel_classes_Resource $resource)
    {
        $values = $resource->getPropertyValues($this->getLockProperty());
        if ((is_array($values)) && (count($values)==1)) {
            return OntoLockData::getLockData(array_pop($values));
        } else {
            return null;
        }

    }
public function getLockData ( core_kernel_classes_Resource $ resource ) { $ values = $ resource -> getPropertyValues ( $ this -> getLockProperty ( ) ) ; if ( ( is_array ( $ values ) ) && ( count ( $ values ) == 1 ) ) { return OntoLockData :: getLockData ( array_pop ( $ values ) ) ; } else { return null ; } }
Return lock details
@param core_kernel_classes_Resource $resource
@throws common_exception_InconsistentData
@return tao_helpers_lock_LockData
Return lock details