original_string: protected function is_admin_tree_needed() {
          if (self::$loadadmintree) {
              // Usually external admin page or settings page.
              return true;
          }
  
          if ($this->page->pagelayout === 'admin' or strpos($this->page->pagetype, 'admin-') === 0) {
              // Admin settings tree is intended for system level settings and management only, use navigation for the rest!
              if ($this->page->context->contextlevel != CONTEXT_SYSTEM) {
                  return false;
              }
              return true;
          }
  
          return false;
      }
code: protected function is_admin_tree_needed() {
          if (self::$loadadmintree) {
              // Usually external admin page or settings page.
              return true;
          }
  
          if ($this->page->pagelayout === 'admin' or strpos($this->page->pagetype, 'admin-') === 0) {
              // Admin settings tree is intended for system level settings and management only, use navigation for the rest!
              if ($this->page->context->contextlevel != CONTEXT_SYSTEM) {
                  return false;
              }
              return true;
          }
  
          return false;
      }
code_tokens: protected function is_admin_tree_needed ( ) { if ( self :: $ loadadmintree ) { // Usually external admin page or settings page. return true ; } if ( $ this -> page -> pagelayout === 'admin' or strpos ( $ this -> page -> pagetype , 'admin-' ) === 0 ) { // Admin settings tree is intended for system level settings and management only, use navigation for the rest! if ( $ this -> page -> context -> contextlevel != CONTEXT_SYSTEM ) { return false ; } return true ; } return false ; }
docstring: Does this page require loading of full admin tree or is
  it enough rely on AJAX?
  
  @return bool
docstring_tokens: Does this page require loading of full admin tree or is it enough rely on AJAX?