original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Returns parent context paths of this context.
  
  @param bool $includeself true means include self too
  @return array of context paths
docstring_tokens: Returns parent context paths of this context .