Get a setting by its handle.

@param string $handle

@return Setting
431006
public function get($handle)
    {
        $this->setting = $this->items->where('handle', $handle)->first();

        return $this->setting;
    }
80125
public function get($key)
    {
        $setting = $this->getSettingOrFail($key);

        $value = $this->backend->getSetting($key);

        return  is_null($value) ? $setting->default() : $value;
    }
1197458
public function get($key = null, $default = null, $set = false)
    {
        if (isset($this->_settings[$key])) {
            return $this->_settings[$key];
        }
        if ($set) {
            $this->set($key, $default);
        }
        return $default;
    }
1246724
public function label($handle = null)
    {
        if ($handle) {
            return $this->get($handle)->label;
        }

        return $this->setting->label;
    }
878919
public static function stop( $handle, $precision = self::DEFAULT_PRECISION )
    {
        $start_time = isset(self::$benchmarks[$handle]) ? self::$benchmarks[$handle] : NULL;
        $stop_time = microtime(true);

        self::$benchmarks[$handle] = $stop_time;

        return round( ($stop_time - $start_time) * 1000, $precision );
    }
938465
public function getSetting($key, $transform = null)
    {
        if (isset($transform[$key])) {
            return $transform[$key];
        }

        return $this[$key];
    }
1331272
private function _getProviderRecordByHandle($handle)
    {
        $providerRecord = Oauth_ProviderInfosRecord::model()->find(

            // conditions
            'class=:provider',

            // params
            array(
                ':provider' => $handle
            )
        );

        if($providerRecord)
        {
            return $providerRecord;
        }

        return null;
    }
623419
protected function enqueue_fallback_handle( $handle ) {
		$result = false;
		foreach ( $this->handlers as $handler ) {
			$result = $result || $handler->maybe_enqueue( $handle );
		}
		return $result;
	}
1280375
public function header($handle, $header)
    {
      if(!is_resource($handle))
        throw new Exception(__METHOD__ . '; cURL handle is not valid');

      $length = strlen($header);

      $this->headers .= $header;

      /*// Trim header (newline)
      $header = rtrim($header);

      if(strlen($header) > 0)
        $this->headers[] = $header;*/

      return $length;
    }
1141206
public function getSetting($key)
    {
        if (array_key_exists($key, $this->settings)) {
            return $this->settings[$key];
        } else {
            return false;
        }
    }
1090710
public function getTask($handle)
    {
        if (!isset($this->handles[$handle])) {
            throw new Exception('Unknown handle');
        }

        if (!isset($this->tasks[$this->handles[$handle]])) {
            throw new Exception('No task by that handle');
        }

        return $this->tasks[$this->handles[$handle]];
    }
1025785
public function setHandler($handler = null)
    {
        $this->handler = null !== $handler ? (string)$handler: $handler;

        return $this;
    }
93656
public function addByKey(string $key): Setting
    {
        $setting = new SimpleSetting($key);

        $this->add($setting);

        return $setting;
    }
731589
public function getHeader($handle, array $options = [])
    {
        /** @var AbstractHttpRequest $request */
        $request          = $this->getRequest();
        $request->options = $options;
        $request->path    = $this->client->fullDatabasePath . static::API_PATH . '/' . $handle;
        $request->method  = static::METHOD_HEAD;

        return $this->getReturnObject($request);
    }
674320
protected function getAssoc($handle)
    {
        $oldSession = session_id();
        session_commit();
        session_id($handle);
        session_start();
        $assoc = null;
        if(!empty($_SESSION['assoc'])) {
            $assoc = $_SESSION['assoc'];
        }
        session_commit();
        if($oldSession) {
            session_id($oldSession);
            session_start();
        }
        return $assoc;
    }
190682
public function fetchJobResult($handle, array $options = [])
    {
        /** @var AbstractHttpRequest $request */
        $request          = $this->getRequest();
        $request->options = $options;
        $request->path    = $this->client->fullDatabasePath . static::API_PATH . '/' . $handle;
        $request->method  = static::METHOD_PUT;

        return $this->getReturnObject($request);
    }
453190
public function getSetting($key)
    {
        if (!isset($this->_settings[$key])) {
            return null;
        }
        return $this->_settings[$key];
    }