public function isLgDependent( core_kernel_classes_Resource $resource)
    {
        if ($this->getModel()->getCache()->has($resource->getUri())) {
            $lgDependent = $this->getModel()->getCache()->get($resource->getUri());
        } else {
            $lgDependentProperty = new \core_kernel_classes_Property(GenerisRdf::PROPERTY_IS_LG_DEPENDENT);
            $lgDependentResource = $resource->getOnePropertyValue($lgDependentProperty);
            $lgDependent = !is_null($lgDependentResource)
                && $lgDependentResource instanceof \core_kernel_classes_Resource
                && $lgDependentResource->getUri() == GenerisRdf::GENERIS_TRUE;
            $this->getModel()->getCache()->put($lgDependent, $resource->getUri());
        }
        return (bool) $lgDependent;
    }
public function isLgDependent( core_kernel_classes_Resource $resource)
    {
        if ($this->getModel()->getCache()->has($resource->getUri())) {
            $lgDependent = $this->getModel()->getCache()->get($resource->getUri());
        } else {
            $lgDependentProperty = new \core_kernel_classes_Property(GenerisRdf::PROPERTY_IS_LG_DEPENDENT);
            $lgDependentResource = $resource->getOnePropertyValue($lgDependentProperty);
            $lgDependent = !is_null($lgDependentResource)
                && $lgDependentResource instanceof \core_kernel_classes_Resource
                && $lgDependentResource->getUri() == GenerisRdf::GENERIS_TRUE;
            $this->getModel()->getCache()->put($lgDependent, $resource->getUri());
        }
        return (bool) $lgDependent;
    }
public function isLgDependent ( core_kernel_classes_Resource $ resource ) { if ( $ this -> getModel ( ) -> getCache ( ) -> has ( $ resource -> getUri ( ) ) ) { $ lgDependent = $ this -> getModel ( ) -> getCache ( ) -> get ( $ resource -> getUri ( ) ) ; } else { $ lgDependentProperty = new \ core_kernel_classes_Property ( GenerisRdf :: PROPERTY_IS_LG_DEPENDENT ) ; $ lgDependentResource = $ resource -> getOnePropertyValue ( $ lgDependentProperty ) ; $ lgDependent = ! is_null ( $ lgDependentResource ) && $ lgDependentResource instanceof \ core_kernel_classes_Resource && $ lgDependentResource -> getUri ( ) == GenerisRdf :: GENERIS_TRUE ; $ this -> getModel ( ) -> getCache ( ) -> put ( $ lgDependent , $ resource -> getUri ( ) ) ; } return ( bool ) $ lgDependent ; }
Short description of method isLgDependent

@access public
@author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
@param  Resource resource
@return boolean
Short description of method isLgDependent