[addAttributes description]

@return void
542925
protected function addAttributes()
    {
        if ($this->props['tagOnly']) {
            return;
        }
        if ($this->props['attribs']['required']) {
            $this->classAdd($this->props['attribsContainer'], 'required');
        }
        if (!$this->props['isValid']) {
            $this->classAdd($this->props['attribsContainer'], 'has-error');
            if ($this->props['invalidReason']) {
                $this->props['helpBlock'] = $this->props['invalidReason'];
            }
        }
        if ($this->props['helpBlock']) {
            // we don't want aria-describedby attrib when tagOnly
            $this->props['attribs']['aria-describedby'] = $this->props['attribsHelpBlock']['id'];
        }
    }
1310916
def add_attribute(self, name, value):
        

        self.attributes.append(Attribute(name, value))
604763
public function addAttribute($key, $value)
    {
        if (!$this->attributes) {
            $this->attributes = new Attributes();
        }

        $this->attributes[$key] = $value;
    }
72885
public void addAttributes(List<Attribute> attributes) {
        for(Attribute attribute : attributes) {
            addAttribute(attribute.getName(), attribute.getValue());
        }
    }
51199
private function setAttributes()
    {
        $result = $this->rawResult;
        // Check if no attribute is missing from the result
        AmlResult::checkAttributes($result);

        $this->onPepList = (bool) $result[self::ON_PEP_LIST_KEY];
        $this->onFraudList = (bool) $result[self::ON_FRAUD_LIST_KEY];
        $this->onWatchList = (bool) $result[self::ON_WATCH_LIST_KEY];
    }
674739
public function addParameter($attribute)
    {
        $attribute = array_change_key_case($attribute, CASE_LOWER);
        $this->parameters[$attribute['name']] = $attribute['value'];
    }
906297
protected function setDefaultAttributes()
    {
        if (!empty($this->attributes)) {
            foreach ($this->attributes as $attr => $val) {
                $this->realSetAttribute($attr, $val);
            }
        }
    }
150638
public void addAttribute(String attribute)
    {
        if(this.attributes == null)
            this.attributes = new ArrayList<String>();
        this.attributes.add(attribute);
    }
415409
public void addAttributes(Iterable<? extends QName> attributes) {
        Level current = path.getLast();
        for (QName attribute : attributes) {
            current.attributes.put(attribute,
                                   new Level(ATTR + getName(attribute)));
        }
    }
1085375
protected void addAttributeName() {
        if (Strings.isNotEmpty(builder)) {
            attribute = builder.toString();
            Strings.clearBuilder(builder);
        }
    }
511113
public function set_attributes() {

		if ( empty( $this->attributes['id'] ) ) {
			$this->attributes['id'] = $this->id();
		}

		if ( ! empty( $this->struct['attributes'] ) ) {
			$this->attributes = array_merge( $this->attributes, $this->struct['attributes'] );
		}

	}
755736
private function replaceAttributesWithChange()
    {
        if (($change = static::lookupRequestedChange())
            && $change->key == $this->getKey()) {
            $this->attributes = array_merge(
                $this->attributes,
                $this->attributesAtChange($change)
            );
        }
    }
89675
protected function setAttributes ()
	{
		$file 					= $this->file;	
		$this->fileName 		= $file['name'];
		$this->mimeType 	 	= $file['type'];
		$this->tempPath 		= $file['tmp_name'];
		$this->fileError 		= $file['error'];
		$this->fileSize 		= $file['size'];

		$pathParts 				= pathinfo($this->fileName);
		$this->fileExtension  	= isset($pathParts['extension']) ? ".".strtolower($pathParts['extension']) : "";
		$newUniqueName 			= uniqid("", TRUE).$this->fileExtension;
		$this->newFileName 		= Validate::hasValue($this->newFileName) ? $this->newFileName.$this->fileExtension : $newUniqueName;
	}
1368921
public function addTags(): void
    {
        $tags = $this->getTags();
        $currentStructureUuid = $this->getCurrentStructureUuid();
        if ($currentStructureUuid && !in_array($currentStructureUuid, $tags)) {
            $tags[] = $currentStructureUuid;
        }

        if (count($tags) <= 0) {
            return;
        }

        $this->symfonyResponseTagger->addTags($tags);
    }
1259588
public function addAttributes(array $attributes)
    {
        foreach ($attributes as $attribute => $value) {
            $this->addAttribute($attribute, $value);
        }

        return $this;
    }
24077
public final void addAttributes(final Map<String,String> attributes) {
        if(attributes != null) {
            this.attributes.putAll(attributes);
        }
    }
71300
protected function defineStubAttrs() {
		$params = $this->description->actions->{$this->action->name()}->input->parameters;
		
		foreach($params as $name => $desc) {
			switch($desc->type) {
				case 'Resource':
					$c = new \stdClass();
					$c->{$desc->value_id} = null;
					$c->{$desc->value_label} = null;
					
					$this->attrs[$name] = $c;
					break;
				
				default:
					$this->attrs[$name] = null;
			}
		}
	}