Esempio n. 1
0
 /**
  * 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
  */
 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;
 }
Esempio n. 2
0
 /**
  * Get Tool Settings.
  *
  * @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
  */
 public function getToolSettings($simple = true)
 {
     $url = $this->getSetting('custom_system_setting_url');
     $service = new Service\ToolSettings($this, $url, $simple);
     $response = $service->get();
     return $response;
 }