private function getClassContentCacheNodeParameter(AbstractClassContent $content)
    {
        $classnames = array(ClassUtils::getRealClass($content));

        $content_uids = $this->em->getRepository('\BackBee\ClassContent\Indexes\IdxContentContent')
            ->getDescendantsContentUids($content)
        ;

        if (0 < count($content_uids)) {
            $classnames = array_merge(
                $classnames,
                $this->em->getRepository('\BackBee\ClassContent\AbstractClassContent')->getClassnames($content_uids)
            );
        }

        $node_parameter = null;
        foreach ($classnames as $classname) {
            if (false === class_exists($classname)) {
                continue;
            }

            $object = new $classname();
            if (null !== $parameters = $object->getProperty('cache-param')) {
                if (true === isset($parameters['node'])) {
                    $node_parameter = $parameters['node'];
                    break;
                }
            }
        }

        return $node_parameter;
    }
private function getClassContentCacheNodeParameter(AbstractClassContent $content)
    {
        $classnames = array(ClassUtils::getRealClass($content));

        $content_uids = $this->em->getRepository('\BackBee\ClassContent\Indexes\IdxContentContent')
            ->getDescendantsContentUids($content)
        ;

        if (0 < count($content_uids)) {
            $classnames = array_merge(
                $classnames,
                $this->em->getRepository('\BackBee\ClassContent\AbstractClassContent')->getClassnames($content_uids)
            );
        }

        $node_parameter = null;
        foreach ($classnames as $classname) {
            if (false === class_exists($classname)) {
                continue;
            }

            $object = new $classname();
            if (null !== $parameters = $object->getProperty('cache-param')) {
                if (true === isset($parameters['node'])) {
                    $node_parameter = $parameters['node'];
                    break;
                }
            }
        }

        return $node_parameter;
    }
private function getClassContentCacheNodeParameter ( AbstractClassContent $ content ) { $ classnames = array ( ClassUtils :: getRealClass ( $ content ) ) ; $ content_uids = $ this -> em -> getRepository ( '\BackBee\ClassContent\Indexes\IdxContentContent' ) -> getDescendantsContentUids ( $ content ) ; if ( 0 < count ( $ content_uids ) ) { $ classnames = array_merge ( $ classnames , $ this -> em -> getRepository ( '\BackBee\ClassContent\AbstractClassContent' ) -> getClassnames ( $ content_uids ) ) ; } $ node_parameter = null ; foreach ( $ classnames as $ classname ) { if ( false === class_exists ( $ classname ) ) { continue ; } $ object = new $ classname ( ) ; if ( null !== $ parameters = $ object -> getProperty ( 'cache-param' ) ) { if ( true === isset ( $ parameters [ 'node' ] ) ) { $ node_parameter = $ parameters [ 'node' ] ; break ; } } } return $ node_parameter ; }
Try to extract cache node parameter from class content yaml files.

@param AbstractClassContent $content the content which we want to extract cache node parameter

@return null|string return the cache node parameter if it exists, else null
Try to extract cache node parameter from class content yaml files .