Returns all recorded values for specified attribute.
@param string $attribute attribute name
@return array attribute values indexed by version id
480283
public function getAttributeVersions($attribute)
    {
        /** @var ActiveRecord $owner */
        $owner = $this->owner;
        return (new Query)
            ->select([
                'value' => "CASE action_type "
                    . "WHEN 'INSERT' THEN jsonb_object_field_text(row_data, :attribute::text) "
                    . "ELSE jsonb_object_field_text(changed_fields, :attribute::text) END",
                'action_id',
            ])
            ->from($this->auditTableName)
            ->where(['AND',
                'relation_id = \''.$owner->tableName().'\'::regclass',
                'statement_only = false',
                ['OR',
                    ['AND', 'action_type = \'INSERT\'', "jsonb_exists(row_data, :attribute)"],
                    ['AND', 'action_type = \'UPDATE\'', "jsonb_exists(changed_fields, :attribute)"],
                ],
                'row_data @> :primaryKey',
            ], [
                //':tableName' => $owner->tableName(),
                ':attribute' => $attribute,
                ':primaryKey' => json_encode($owner->getPrimaryKey(true)),
            ])
            ->orderBy('action_id')
            ->indexBy('action_id')
            ->column($owner->getDb());
    }
644580
public function getError($attribute)
    {
        $result = null;

        if ($this->isErrorExists($attribute)) {
            $result = $this->errors[$attribute];
        }

        return $result;
    }
1126090
public function getAttribute($attribute)
    {
        $ret = '';
        if (isset($this->attributeHash[$attribute])) {
            $ret = $this->attributeHash[$attribute];
        }

        return $ret;
    }
556991
public function getAttribute($attribute)
    {
        switch ($attribute) {
            case self::PROPEL_ATTR_CACHE_PREPARES:
                return $this->isCachePreparedStatements;
                break;
            default:
                return $this->connection->getAttribute($attribute);
        }
    }
240895
protected function extractDataFromPath( $attribute )
	{
		$results = [];

		$value = Arr::get( $this->data, $attribute, '__missing__' );

		if ( $value != '__missing__' )
		{
			Arr::set( $results, $attribute, $value );
		}

		return $results;
	}
1208552
public function getValues(array $attribute_names = [])
    {
        $values = [];
        if (!empty($attribute_names)) {
            foreach ($attribute_names as $attribute_name) {
                $values[$attribute_name] = $this->getValue($attribute_name);
            }
        } else {
            foreach ($this->getType()->getAttributes() as $attribute) {
                $values[$attribute->getName()] = $this->getValue($attribute->getName());
            }
        }

        return $values;
    }
44588
protected function _getIdempotencyAttributes($attributes)
    {
        $result = [];
        foreach ($attributes as $key => $value) {
            if ($value['idempotency']) {
                $result[] = $key;
            }
        }
        return implode('&', $result);
    }
281101
public function getSingleAdderCodeDocumentationParameterLines(PHPAttribute $attribute)
    {
        $lines = [];

        $lines[] = '@param ' . $attribute->getPhpSingleTypeBase() . ' $' . $attribute->getSingleName();
        $lines[] = '@param bool $_allowRepeatedValues';

        return $lines;
    }
629505
public function getAttribute($attribute)
    {
        if (isset($this->options[$attribute])) {
            return $this->options[$attribute];
        }
        return null;
    }
1182766
public function get($attribute)
    {
        if (!isset($this->attributes[$attribute])) {
            return null;
        }

        return $this->attributes[$attribute];
    }
101455
public function getData($attribute = null)
    {
        if (is_null($attribute)) {
            return $this->data;
        } elseif (isset($this->data[$attribute])) {
            return $this->data[$attribute];
        } else {
            return null;
        }
    }
1047031
protected function getAttribute($attribute)
	{
		// The developer may dynamically specify the array of custom attributes
		// on this Validator instance. If the attribute exists in this array
		// it takes precedence over all other ways we can pull attributes.
		if (isset($this->customAttributes[$attribute]))
		{
			return $this->customAttributes[$attribute];
		}

		$key = "validation.attributes.{$attribute}";

		// We allow for the developer to specify language lines for each of the
		// attributes allowing for more displayable counterparts of each of
		// the attributes. This provides the ability for simple formats.
		if (($line = $this->translator->trans($key)) !== $key)
		{
			return $line;
		}

		// If no language line has been specified for the attribute all of the
		// underscores are removed from the attribute name and that will be
		// used as default versions of the attribute's displayable names.
		return str_replace('_', ' ', snake_case($attribute));
	}
990370
protected function parseAttributes(array $attributes)
    {
        $result = [];

        foreach ($attributes as $attribute => $value) {
            $result[$this->parseConstantValue($attribute)] = $value;
        }

        return $result;
    }
1066431
public function attributeIsDirty($attribute)
	{
		return $this->_dirty && isset($this->_dirty[$attribute]) && array_key_exists($attribute, $this->_attributes);
	}
1304880
public function attr($attribute)
    {
        $node = $this->getNode();
        $value = null;

        if ($node instanceof \DOMNode) {
            $value = $node->getAttribute($attribute);
        } else {
            foreach ($node as $item) {
                if ($item->hasAttribute($attribute)) {
                    $value = $node->attr($attribute);
                }

                break;
            }
        }

        return $value;
    }
131820
public function getAttribute( $attribute ) {
		$data = $this->getData();

		return ! empty ( $data[$attribute] ) ? $data[$attribute] : '';
	}
248301
public function getAttributeToLdap($attribute)
    {
        return $this->hasAttribute($attribute) ? $this->lcAttributeNameMap[strtolower($attribute)] : $attribute;
    }