original_string: public function getToolSettings($mode = Service\ToolSettings::MODE_CURRENT_LEVEL, $simple = true)
      {
  
          $url = $this->getSetting('custom_context_setting_url');
          $service = new Service\ToolSettings($this, $url, $simple);
          $response = $service->get($mode);
  
          return $response;
  
      }
code: public function getToolSettings($mode = Service\ToolSettings::MODE_CURRENT_LEVEL, $simple = true)
      {
  
          $url = $this->getSetting('custom_context_setting_url');
          $service = new Service\ToolSettings($this, $url, $simple);
          $response = $service->get($mode);
  
          return $response;
  
      }
code_tokens: public function getToolSettings ( $ mode = Service \ ToolSettings :: MODE_CURRENT_LEVEL , $ simple = true ) { $ url = $ this -> getSetting ( 'custom_context_setting_url' ) ; $ service = new Service \ ToolSettings ( $ this , $ url , $ simple ) ; $ response = $ service -> get ( $ mode ) ; return $ response ; }
docstring: Get Tool Settings.
  
  @param int      $mode       Mode for request (optional, default is current level only)
  @param boolean  $simple     True if all the simple media type is to be used (optional, default is true)
  
  @return mixed The array of settings if successful, otherwise false
docstring_tokens: Get Tool Settings .