public function get_parent_context_paths($includeself = false) {
        if (empty($this->_path)) {
            return array();
        }

        $contextids = explode('/', $this->_path);

        $path = '';
        $paths = array();
        foreach ($contextids as $contextid) {
            if ($contextid) {
                $path .= '/' . $contextid;
                $paths[$contextid] = $path;
            }
        }

        if (!$includeself) {
            unset($paths[$this->_id]);
        }

        return $paths;
    }
public function get_parent_context_paths($includeself = false) {
        if (empty($this->_path)) {
            return array();
        }

        $contextids = explode('/', $this->_path);

        $path = '';
        $paths = array();
        foreach ($contextids as $contextid) {
            if ($contextid) {
                $path .= '/' . $contextid;
                $paths[$contextid] = $path;
            }
        }

        if (!$includeself) {
            unset($paths[$this->_id]);
        }

        return $paths;
    }
public function get_parent_context_paths ( $ includeself = false ) { if ( empty ( $ this -> _path ) ) { return array ( ) ; } $ contextids = explode ( '/' , $ this -> _path ) ; $ path = '' ; $ paths = array ( ) ; foreach ( $ contextids as $ contextid ) { if ( $ contextid ) { $ path .= '/' . $ contextid ; $ paths [ $ contextid ] = $ path ; } } if ( ! $ includeself ) { unset ( $ paths [ $ this -> _id ] ) ; } return $ paths ; }
Returns parent context paths of this context.

@param bool $includeself true means include self too
@return array of context paths
Returns parent context paths of this context .