public function getChildPageByPath($path)
    {
        $page = $this;
        $pathParts = preg_split('#([/:])#', $path, -1, PREG_SPLIT_DELIM_CAPTURE);
        for($i=0; $i<count($pathParts); $i++) {
            $pathPart = $pathParts[$i];
            $i++;
            $nextSeparator = isset($pathParts[$i]) ? $pathParts[$i] : '/';
            if ($nextSeparator == '/') {
                $pages = $page->getRecursiveChildComponents(array(
                                'filename' => $pathPart,
                                'pseudoPage'=>true,
                                'limit'=>1),
                            array('pseudoPage'=>false));
            } else {
                // if path is separated by ':', id comes without '-', search for child-component
                $pages = $page->getRecursiveChildComponents(array(
                                'id' => '-' . $pathPart,
                                'pseudoPage'=>false,
                                'limit'=>1),
                            array('pseudoPage'=>false));
            }
            $page = current($pages);
            if (!$page) break;
        }
        return $page;
    }
public function getChildPageByPath($path)
    {
        $page = $this;
        $pathParts = preg_split('#([/:])#', $path, -1, PREG_SPLIT_DELIM_CAPTURE);
        for($i=0; $i<count($pathParts); $i++) {
            $pathPart = $pathParts[$i];
            $i++;
            $nextSeparator = isset($pathParts[$i]) ? $pathParts[$i] : '/';
            if ($nextSeparator == '/') {
                $pages = $page->getRecursiveChildComponents(array(
                                'filename' => $pathPart,
                                'pseudoPage'=>true,
                                'limit'=>1),
                            array('pseudoPage'=>false));
            } else {
                // if path is separated by ':', id comes without '-', search for child-component
                $pages = $page->getRecursiveChildComponents(array(
                                'id' => '-' . $pathPart,
                                'pseudoPage'=>false,
                                'limit'=>1),
                            array('pseudoPage'=>false));
            }
            $page = current($pages);
            if (!$page) break;
        }
        return $page;
    }
public function getChildPageByPath ( $ path ) { $ page = $ this ; $ pathParts = preg_split ( '#([/:])#' , $ path , - 1 , PREG_SPLIT_DELIM_CAPTURE ) ; for ( $ i = 0 ; $ i < count ( $ pathParts ) ; $ i ++ ) { $ pathPart = $ pathParts [ $ i ] ; $ i ++ ; $ nextSeparator = isset ( $ pathParts [ $ i ] ) ? $ pathParts [ $ i ] : '/' ; if ( $ nextSeparator == '/' ) { $ pages = $ page -> getRecursiveChildComponents ( array ( 'filename' => $ pathPart , 'pseudoPage' => true , 'limit' => 1 ) , array ( 'pseudoPage' => false ) ) ; } else { // if path is separated by ':', id comes without '-', search for child-component $ pages = $ page -> getRecursiveChildComponents ( array ( 'id' => '-' . $ pathPart , 'pseudoPage' => false , 'limit' => 1 ) , array ( 'pseudoPage' => false ) ) ; } $ page = current ( $ pages ) ; if ( ! $ page ) break ; } return $ page ; }
Searches for a child page by a given path

Should only be used to resolve incoming paths

@param string
@return Kwf_Component_Data
Searches for a child page by a given path