getAttribute

@param string $field
@param string $name
@param mixed  $default
@param string $group

@return  mixed
178518
public function getAttribute($field, $name, $default = null, $group = null)
    {
        $field = $this->getField($field, $group);

        if ($field) {
            return $field->getAttribute($name, $default);
        }

        return $default;
    }
657205
public function getAttribute( $name, $prefix )
	{
		return $this->hasAttribute( $name, $prefix )
			? $this->attributes[ "$prefix:$name" ]
			: (
				$this->hasAttributeGroup( $name, $prefix )
					? $this->attributeGroups[ "$prefix:$name" ]
					: false
			  );
	}
1308304
public function get($key, $default = null)
    {
        if (array_key_exists($key, $this->attributes)) {
            return $this->attributes[$key];
        }

        return $default;
    }
243468
public function getAttribute($name = null)
    {
        return is_null($name) ? $this->attributes : Arr::get($this->attributes, $name);
    }
1266972
public function getAttribute($name)
    {
        if (!isset($this->attrs[$name]))
        {
            return null;
        }

        return $this->attrs[$name];
    }
1164570
private function _get($name, $default = null)
    {
        return array_key_exists($name, $this->getData()) ? $this->getData()[$name] : $default;
    }
993977
public function getField($name, $key, $default = null)
    {
        if (array_key_exists($name, $this->fields) && array_key_exists($key, $this->fields[$name])) {
            return $this->fields[$name][$key];
        }
        return $default;
    }
354377
public function get($field, $default = null)
	{
		if (isset($this->user[$field]))
		{
			return $this->user[$field];
		}
		elseif (isset($this->user['profile_fields']))
		{
			return $this->get_profile_fields($field, $default);
		}

		return $default;
	}
164767
public function get($attribute = null, $default = null)
    {
        if (is_null($attribute)) {
            return $this->attributes;
        }

        if (array_key_exists($attribute, $this->attributes)) {
            return $this->attributes[$attribute];
        }

        return $default;
    }
1138466
public function group(string $name, string $default, $attributes = [], Closure $callback = null): array
    {
        $route = $this->route($name, $default);

        if ($attributes instanceof Closure) {
            $callback = $attributes;
            $attributes = [];
        }

        $attributes = array_merge($attributes, $route->group());

        if (! is_null($callback)) {
            $this->router->group($attributes, $callback);
        }

        return $attributes;
    }
152084
public function get($name, $default = null)
	{
		if (is_null($name))
		{
			return $this->data;
		}
		return \Arr::get($this->data, $name, $default);
	}
1128044
public function &get($field, $default=null, $autoset=false)
    {
        if($this->exists($field))
        {
            return $this->__data[$field];
        }
        if($autoset===true)
        {
            $this->set($field, $default);
            return $this->get($field);
        }
        return $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;
        }
    }
1300626
public function get($field, $default = null)
	{
		// if it's an object property, return it, else return the default
		return isset($this->user->{$field}) ? $this->user->{$field} : $default;
	}
1178576
public function defineAttribute($name, $field)
    {
        $field = BaseField::createField($field);

        $field->link($this, $name);

        $this->_attributes[$name] = $field;
    }
1273571
function attribute( $name )
    {
        switch ( $name )
        {
            case "name" :
            {
                return $this->Name;
            } break;
            case "id" :
            {
                return $this->ID;
            } break;
            case "group_id":
            {
                return $this->GroupID;
            } break;
            case "rules":
            {
                return $this->Rules;
            } break;
            case "multioption_list" :
            {
                return $this->Options;
            } break;
            case "optiongroup_list":
            {
                return $this->ChildGroupList;
            } break;
            default:
            {
                eZDebug::writeError( "Attribute '$name' does not exist", __METHOD__ );
                $retValue = null;
                return $retValue;
            }break;
        }
    }
732926
public function getAttribute($name, $default = null)
	{
		if ($this->element instanceof SimpleXMLElement)
		{
			$attributes = $this->element->attributes();

			// Ensure that the attribute exists
			if (property_exists($attributes, $name))
			{
				$value = $attributes->$name;

				if ($value !== null)
				{
					return (string) $value;
				}
			}
		}

		return $default;
	}