protected function selected_parent_exists($path) {
        $parentpath = progressive_parser::dirname($path);
        while ($parentpath != '/') {
            if ($this->path_is_selected($parentpath)) {
                return $parentpath;
            }
            $parentpath = progressive_parser::dirname($parentpath);
        }
        return false;
    }
protected function selected_parent_exists($path) {
        $parentpath = progressive_parser::dirname($path);
        while ($parentpath != '/') {
            if ($this->path_is_selected($parentpath)) {
                return $parentpath;
            }
            $parentpath = progressive_parser::dirname($parentpath);
        }
        return false;
    }
protected function selected_parent_exists ( $ path ) { $ parentpath = progressive_parser :: dirname ( $ path ) ; while ( $ parentpath != '/' ) { if ( $ this -> path_is_selected ( $ parentpath ) ) { return $ parentpath ; } $ parentpath = progressive_parser :: dirname ( $ parentpath ) ; } return false ; }
Returns the first selected parent if available or false
Returns the first selected parent if available or false