original_string: public function get($mode = self::MODE_CURRENT_LEVEL) {
  
          $parameter = array();
          if ($mode === self::MODE_ALL_LEVELS) {
              $parameter['bubble'] = 'all';
          } else if ($mode === self::MODE_DISTINCT_NAMES) {
              $parameter['bubble'] = 'distinct';
          }
          $http = $this->send('GET', $parameter);
          if (!$http->ok) {
              $response = false;
          } else if ($this->simple) {
              $response = json_decode($http->response, true);
          } else if (isset($http->responseJson->{'@graph'})) {
              $response = array();
              foreach ($http->responseJson->{'@graph'} as $level) {
                  $settings = json_decode(json_encode($level->custom), true);
                  unset($settings['@id']);
                  $response[self::$LEVEL_NAMES[$level->{'@type'}]] = $settings;
              }
          }
  
          return $response;
  
      }
code: public function get($mode = self::MODE_CURRENT_LEVEL) {
  
          $parameter = array();
          if ($mode === self::MODE_ALL_LEVELS) {
              $parameter['bubble'] = 'all';
          } else if ($mode === self::MODE_DISTINCT_NAMES) {
              $parameter['bubble'] = 'distinct';
          }
          $http = $this->send('GET', $parameter);
          if (!$http->ok) {
              $response = false;
          } else if ($this->simple) {
              $response = json_decode($http->response, true);
          } else if (isset($http->responseJson->{'@graph'})) {
              $response = array();
              foreach ($http->responseJson->{'@graph'} as $level) {
                  $settings = json_decode(json_encode($level->custom), true);
                  unset($settings['@id']);
                  $response[self::$LEVEL_NAMES[$level->{'@type'}]] = $settings;
              }
          }
  
          return $response;
  
      }
code_tokens: public function get ( $ mode = self :: MODE_CURRENT_LEVEL ) { $ parameter = array ( ) ; if ( $ mode === self :: MODE_ALL_LEVELS ) { $ parameter [ 'bubble' ] = 'all' ; } else if ( $ mode === self :: MODE_DISTINCT_NAMES ) { $ parameter [ 'bubble' ] = 'distinct' ; } $ http = $ this -> send ( 'GET' , $ parameter ) ; if ( ! $ http -> ok ) { $ response = false ; } else if ( $ this -> simple ) { $ response = json_decode ( $ http -> response , true ) ; } else if ( isset ( $ http -> responseJson -> { '@graph' } ) ) { $ response = array ( ) ; foreach ( $ http -> responseJson -> { '@graph' } as $ level ) { $ settings = json_decode ( json_encode ( $ level -> custom ) , true ) ; unset ( $ settings [ '@id' ] ) ; $ response [ self :: $ LEVEL_NAMES [ $ level -> { '@type' } ] ] = $ settings ; } } return $ response ; }
docstring: Get the tool settings.
  
  @param int          $mode       Mode for request (optional, default is current level only)
  
  @return mixed The array of settings if successful, otherwise false
docstring_tokens: Get the tool settings .