Return variable value from storage.
If variable not exists return default value

@param string $key Variable name
@param mixed $defaultValue Default value if variable not found
@return mixed Variable value
198775
public function get($key = null, $defaultValue = null) {
		$conditions = compact('key');
		if ($key === null) {
			return $this->find('all', $conditions);
		} else {
			$value = $this->field('value', $conditions);
			return $this->find('count', array('conditions' => $conditions)) ? $value : $defaultValue;
		}
	}
401183
public static function getDefault($keys, $defaultValue) {
    try {
      $value = self::req($keys);
    } catch (MissingConfigVariableException $e) {
      return $defaultValue;
    }
    
    return $value;
  }
516138
public function getQueryParameter($key, $defaultValue = null)
    {
        if (array_key_exists($key, $this->getParameters)) {
            return $this->getParameters[$key];
        }

        return $defaultValue;
    }
680568
public function get($key, $default = null)
    {
        $value = $this->fetch($key);

        return (!is_null($value)) ? $value : $default;
    }
14183
public static function getVar(string $name, $defaultValue = null)
    {
        $value = getenv($name);
        return $value !== false ? $value : $defaultValue;
    }
538101
public function getOptional($key, $defaultValue = null)
  {
    if (array_key_exists($key, $this->data)) {
      return $this->data[$key];
    }
    return $defaultValue;
  }
360245
public function get($key, $default_val = null)
    {
        if ($this->exists($key)) {
            return $this->offsetGet($key);
        }

        return $default_val;
    }
126846
public String get(String key, String defaultValue) {
        String v = get(key);
        if (v==null)    v=defaultValue;
        return v;
    }
793172
public static function getSessionValue($key, $default=null) {
		if(!isset($_SESSION)){
			session_start();
		}
		return (isset($_SESSION[$key]) ? $_SESSION[$key] : $default);
	}
296045
public function get($key, $default = null)
    {
        $value = parent::get($key, $default);
        if (is_array($value)) {
            $value = array_shift($value);
        }
        return $value;
    }
1132960
public static function get(string $key, $defaultValue = null, ?string $app = null)
    {
        return self::repository($app)->get($key, $defaultValue);
    }
21652
public function get($key, $defaultValue = null)
    {
        $keyExists = true;
        $parts     = $this->getPath($key);
        $node      = $this->getFromCache();

        foreach($parts as $part) {
            $part = trim($part);

            if (!is_array($node) || !array_key_exists($part, $node)) {
                $keyExists = false;
                break;
            }

            $node = &$node[$part];
        }

        if ($keyExists) {
            return $node;
        } else {
            return $defaultValue;
        }
    }
935098
public function get($param, $defaultValue = null)
    {
        return array_key_exists($param, $this->config) ? $this->config[$param] : $defaultValue;
    }
816748
private function get($key, $value, $default)
    {
        if ($this->has($key)) {
            return $this->data[$key][$value];
        } else {
            return $default;
        }
    }
544880
public function get($key, $default = null)
    {
        $this->checkKey($key);
        if ($this->noCache()) {
            return $default;
        }
        $value = $this->getRedis()->get($this->filterKey($key));
        return $value === false ? $default : $value;
    }
746767
public function post($key, $defaultValue = null)
    {
        $r = Request::getInstance();

        return $r->post($key, $defaultValue);
    }
27455
public static function getInfo( $key = null, $defaultValue = null )
    {
        return null === $key ? static::$_info : Option::get( static::$_info, $key, $defaultValue );
    }