@param string $attributeName

@return string
969879
public static function transformToValidMemberName($attributeName)
    {
        $attributeName = \str_replace(self::$forbiddenMemberNameCharacters, '', $attributeName);

        $attributeName = \ltrim($attributeName, \implode('', self::$forbiddenAsFirstOrLastCharacter));
        $attributeName = \rtrim($attributeName, \implode('', self::$forbiddenAsFirstOrLastCharacter));

        return $attributeName;
    }
1343779
public function resolveAttributeAlias(string $attributePath): string
    {
        $attributesList = explode('.', $attributePath);
        $previousAttribute = $this->getAlias().'.'.array_shift($attributesList);
        $resolvedAttribute = $previousAttribute;

        // Remaining attributes in attributeList are nested so we need joins
        foreach ($attributesList as $nestedAttribute) {
            $qb = $this->getQueryBuilder();
            $joinAlias = uniqid('nested');
            $qb->join($previousAttribute, $joinAlias);
            $resolvedAttribute = $joinAlias.'.'.$nestedAttribute;
        }

        return $resolvedAttribute;
    }
994542
public function getAttribute($attributeName)
    {
        // init
        $result = null;

        // action
        foreach ($this->attributes as $attribute) {
            if ($attribute->Name == $attributeName) {
                $result = $attribute;
                break;
            }
        }

        // --- result ---
        return $result;
    }
120317
public String getAttribute(String attributeName) {
		if (attributeName != null){
			return this.attributes.get(attributeName);
		}
		
		return null;
	}
1070938
public static function getFormItemByAttributeName($attributeName, $attributeValue, $localizedName = "")
    {

        $attributeType = substr($attributeName, 2, 1);

        if ($attributeType == "s") {
            $formItem = static::getFormItemByAttributeType("shorttext", $attributeName, $attributeValue, $localizedName);
        } else if ($attributeType == "l") {
            $formItem = static::getFormItemByAttributeType("longtext", $attributeName, $attributeValue, $localizedName);
        } else if ($attributeType == "h") {
            $formItem = static::getFormItemByAttributeType("htmllongtext", $attributeName, $attributeValue, $localizedName);
        } else if ($attributeType == "t") {
            $formItem = static::getFormItemByAttributeType("time", $attributeName, $attributeValue, $localizedName);
        } else if ($attributeType == "d") {
            $formItem = static::getFormItemByAttributeType("date", $attributeName, $attributeValue, $localizedName);
        } else if ($attributeType == "w") {
            $formItem = static::getFormItemByAttributeType("weekday", $attributeName, $attributeValue, $localizedName);
        } else {
            $formItem = static::getFormItemByAttributeType("shorttext", $attributeName, $attributeValue, $localizedName);
        }

        return $formItem;

    }
172070
public function extractNodeAttributeVal(DOMNodeList $nodeList, $attributeName)
    {
        return ($nodeList->length)? $nodeList->item(0)->getAttribute($attributeName) : null;
    }
1359315
function attribute( $attributeName )
    {
        if ( isset( $this->Parameters[$attributeName] ) )
        {
            return $this->Parameters[$attributeName];
        }

        eZDebug::writeError( "Attribute '$attributeName' does not exist", __METHOD__ );
        return null;
    }
152632
public function getFieldBc($fieldName)
    {
        if (array_key_exists($fieldName, $this->bcFields)) {
            return $this->bcFields[$fieldName];
        }

        return $fieldName;
    }
480941
public function getAttribute(string $attributeName) : array
    {
        if ($this->isEmpty()) {
            return [];
        }

        $entries = $this->toArray();
        if (!array_key_exists($attributeName, $entries[0])) {
            throw new InvalidAttributeException($attributeName);
        }

        return array_column($entries, $attributeName);
    }
702025
protected function getLayoutAttributeWithNamespace(array $attributes, $contentName)
    {
        if (isset($attributes['layout']) === false) {
            return '';
        }

        if (is_string($attributes['layout']) === false) {
            throw new AttributeValueException('Invalid value. Expected string.', 'layout', $contentName);
        }

        if (strlen($attributes['layout']) == 0) {
            throw new AttributeValueException('Invalid value. Expected a non-empty string.', 'layout', $contentName);
        }

        return $this->getLayoutNameWithNamespace($attributes['layout']);
    }
737192
public function getColumnNameForAttribute($attributeName)
    {
        if (!empty($this->mappings)) {
            $flipped = array_flip($this->mappings);
            if (isset($flipped[$attributeName])) {
                return $flipped[$attributeName];
            }
        }

        return $attributeName;
    }
1316545
protected function getFieldName($fieldName)
	{
		if ($fieldName)
		{
			return $fieldName;
		}
		else
		{
			self::$count = self::$count + 1;

			return self::$generated_fieldname . self::$count;
		}
	}
834776
public function getNameAttribute()
    {
        if ($this->firstname && $this->lastname)
            return $this->firstname . ' ' . $this->lastname;
        else
            return $this->email;
    }
1126490
protected function attributesToString()
    {
        $string = '';
        $XMLConvention = in_array(static::$outputLanguage, array(ENT_XML1, ENT_XHTML));
        if (!empty($this->attributeList)) {
            foreach ($this->attributeList as $key => $value) {
                if ($value!==null && ($value!==false || $XMLConvention)) {
                    $string.= ' ' . $key;
                    if ($value===true) {
                        if ($XMLConvention) {
                            $value = $key;
                        } else {
                            continue;
                        }
                    }
                    $string.= '="' . implode(
                        ' ',
                        array_map(
                            static::$avoidXSS ? 'static::unXSS' : 'strval',
                            is_array($value) ? $value : array($value)
                        )
                    ) . '"';
                }
            }
        }
        return $string;
    }
281066
private function stringify($attributeValue)
    {
        if (is_object($attributeValue) && get_class($attributeValue) == "SAML2\XML\saml\NameID") {
            return $attributeValue->NameQualifier . '!' . $attributeValue->SPNameQualifier . '!'
                . $attributeValue->value;
        } else {
            return $attributeValue;
        }
    }
315283
public function getSource($attributeName)
    {
        if ($this->hasAttribute($attributeName) && isset($this->attributeRules[$attributeName][0]['source'])) {
            return $this->attributeRules[$attributeName][0]['source'];
        }
        return 'idp';
    }
233403
public function getConverter($attributeName)
    {
        if (!$this->hasConverter($attributeName)) {
            throw new InvalidArgumentException(sprintf('No converter exists for attribute "%s".', $attributeName));
        }

        return $this->lcConverterMap[strtolower($attributeName)];
    }