Retrieves a value

@param string|int $name    The config name
@param mixed      $default The default value

@return mixed
178582
public function get($name, $default = null)
    {
        if (!array_key_exists($name, $this->data)) {
            return $default;
        }

        return $this->data[$name];
    }
382624
public function get($name = null, $default = null)
    {
        $value = null;

        if (null === $name) {
            $value = $this->data;
        } elseif (isset($this->data[$name])) {
            $value = $this->data[$name];
        } elseif (null !== $default) {
            $value = $default;
        } else {
            throw new \Exception('Key not found in data ! (key: ' . $name . ')');
        }

        return $value;
    }
848585
public function get($name, $default = null)
    {
        if (isset($this->data[$name])) {
            return $this->data[$name];
        }

        return $default;
    }
1059883
public function get($name, $default = null)
    {
        $result = $default;
        if($this->hasProperty($name, 'value')) {
            $result =  $this->_data[$name]->value;
        }

        return $result;
    }
1219056
public function getParam($name, $default = null)
    {
        if (isset($this->params[$name])) {
            return $this->params[$name];
        }

        return $default;
    }
266152
public function get($name, $default = null)
    {
        if ($this->isError()) {
            if (array_key_exists($name, (array)$this->getErrorData())) {
                return $this->getErrorData()[$name];
            }
        } else {
            if (array_key_exists($name, (array)$this->getResult())) {
                return $this->getResult()[$name];
            }
        }

        return $default;
    }
1102920
public function getParam($name, $default = null)
    {
        if (!array_key_exists($name, $this->userConfig->params)) {
            return $default;
        }

        return $this->userConfig->params[$name];
    }
1350772
public function get($name, $default = false) {
        $result = $this->handler->get($name);
        return false !== $result ? $result : $default;
    }
968766
private function getValue ($name, $default)
	{
		$parts = explode ('.', $name);
		$file = array_shift ($parts);

		$this->loadFile ($file);

		if (! isset ($this->files[$file])) {
			return $default;
		}
		else {
			$out = $this->files[$file];
			foreach ($parts as $part)
			{
				if (!isset ($out[$part]))
				{
					return $default;
				}
				else {
					$out = $out[$part];
				}
			}
		}

		return $out;
	}
1008892
public function getOption($name, $default = null)
    {
        $config = $this->getConfig();

        return array_key_exists($name, $config) ? $config[$name] : $default;
    }
1360506
public function getParam($name, $default = null)
    {
        if (\is_array($this->params)) {
            // Check in params that are arrays or implement array access
            return $this->params[$name] ?? $default;
        } elseif (\is_object($this->params)) {
            // Check in normal objects
            return $this->params->{$name} ?? $default;
        } else {
            // Wrong type, return default value
            return $default;
        }
    }
310722
public function get(string $name, $default = null)
    {
        if (! $this->has($name)) {
            return $default;
        }

        if (isset($this->called[$name]['called'])) {
            $this->called[$name] = [
                'value' => call_user_func_array([$this->hook, 'apply'], $this->called[$name]['value'])
            ];
        }

        return $this->called[$name]['value'];
    }
187709
public function get($name, $default = null)
  {
    $name = $this->get_field_name($name);
    $dotPos = strpos($name, '.');
    if (!$dotPos && $default === null)
    {
      return $this->__get($name);
    }
    $this->load_if_needed($dotPos ? substr($name, 0, $dotPos) : $name);
    $ref = $this->get_field_reference($name, FALSE, $default);
    return $ref;
  }
907218
public function get( $name, $default = null )
	{
		$name = trim( $name, '/' );

		if( isset( $this->_negCache[ $name ] ) ) {
			return $default;
		}

		if( array_key_exists( $name, $this->_cache ) ) {
			return $this->_cache[ $name ];
		}

		if( ( $return = $this->_getValueFromArray( $this->_config, explode( '/', $name ) ) ) !== null ) {
			return $return;
		}

		$return = $this->_getObject()->get( $name, null );

		if( $return === null )
		{
			$this->_negCache[ $name ] = true;
			return $default;
		}

		$this->_cache[ $name ] = $return;
		return $return;
	}
1006920
public function get(string $name, $default = null)
    {
        return $this->has($name) ? $this->values[$name] : $default;
    }
488864
public function getAttribute($name, $default = null)
    {
        $value = $default;
        if ($this->hasAttribute($name)) {
            $value = $this->attributes->get($name);
        }
        return $value;
    }
326885
public function get($name, $default = null)
    {
        if (isset($this->body[$name])) {
            return $this->body[$name];
        }

        return $default;
    }