Sets the attributes to fetch
@param array $attrs
@return \eMapper\ORM\Manager
178812
public function attrs($attrs) {
		if (is_array($attrs) && !empty($attrs))
			return $this->merge(['query.attrs' => $attrs]);
		else
			return $this->merge(['query.attrs' => func_get_args()]);
	}
273282
public function buildInput($attrs)
    {
        if ($this->getBool('hr')) {
            $node = 'hr';

            $content = null;
        } else {
            $node = $this->getAttribute('tag', 'span');

            $content = $this->getAttribute('description');
        }

        return new HtmlElement($node, $content, $attrs);
    }
788107
protected function _cleanAttrs(array $attrs = array())
    {
        foreach ($attrs as $key => $val) {
            if (Arr::in($key, $this->_disallowAttr)) {
                unset($attrs[$key]);
            }
        }

        return $attrs;
    }
1003076
public function assign($attrs)
    {
        foreach ($attrs as $key => $val) {
            if (property_exists($this, $key)) {
                $this->$key = $val;
            }
        }
    }
100156
public function buildInput($attrs)
    {
        $content = $this->getAttribute('content');

        if (is_callable($content)) {
            return call_user_func($content, $this);
        }

        return $content;
    }
1133756
public function setAttributes($attributes)
    {
        foreach ($attributes as $attribute => $value) {
            if ($attribute === 'class') {
                $this->addClass($value);
                continue;
            }

            if (is_int($attribute)) {
                $attribute = $value;
                $value = '';
            }

            $this->setAttribute($attribute, (string) $value);
        }

        return $this;
    }
403520
protected function addValidAttributes( $attrs ) {
        foreach( $attrs as $attr ) {
            //add if string
            if( is_string( $attr ) ) {
                $this->validAttributes[] = $attr;
            }
        }
    }
972832
public function setAttributes(Array $attributes) {

		foreach($attributes as $k => $v) {
			$this->setAttribute($k, $v);
		}
		return $this;

	}
420004
public function prepare(&$attrs)
    {
        $attrs['type'] = 'hidden';
        $attrs['name'] = $this->getFieldName();
        $attrs['id'] = $this->getAttribute('id', $this->getId());
        $attrs['class'] = $this->getAttribute('class');
        $attrs['disabled'] = $this->getAttribute('disabled');
        $attrs['onchange'] = $this->getAttribute('onchange');
        $attrs['value'] = $this->getValue();
    }
895746
public function buildInput($attrs)
    {
        $html = parent::buildInput($attrs);

        if (count($this->options)) {
            $html .= new Datalist($attrs['list'], $this->options);
        }

        return $html;
    }
537209
public function attr(Array $attributes) : Table
    {
        foreach( $attributes as $att => $val )
        {
            $this->attr[$att] = $val;
        }

        return $this;
    }
779555
public function setAttributes(array $attributes = null)
    {
        ValidationUtility::ensureNullOrArrayOfType(
            '$attributes', $attributes, __NAMESPACE__ . '\Pair');

        $this->attributes = $attributes;

        return $this;
    }
359708
public function _setAttributes($attributes)
    {
        if (is_array($attributes)) {
            foreach ($attributes as $attribute => $value) {
                $this->{$attribute} = $value;
            }

            return $this;
        }

        //@todo: put real exception here cos exception' gon be thrown either ways, so put one that makes sense
        //or something else that has more meaning
        throw new \InvalidArgumentException('Invalid argument Passed to set attributes on object');
    }
848274
public function withAttributes(array $attributes)
    {
        $clone = clone $this;

        foreach ($attributes as $name => $value) {
            $clone->dom->documentElement->setAttribute($name, $value);
        }

        return $clone;
    }
1079182
public function appendAttributes(array $attrs, $options = ["option" => "append"]) {
        $url = "entities/{$this->_id}/attrs";

        if ($this->_type) {
            $url .= "?type={$this->_type}";
        }

        if (count($options) > 0) {
            $prefix = ($this->_type) ? "&" : "?";
            $url .= $prefix . urldecode(http_build_query($options));
        }

        $updateEntity = new ContextFactory($attrs);
        return $this->_orion->create($url, $updateEntity);
    }
607942
public function buildInput($attrs)
    {
        $options = $this->getOptions();

        return new SelectList(
            $this->getFieldName(),
            $options,
            $attrs,
            $this->getValue(),
            $this->getBool('multiple')
        );
    }
1131164
protected function initializeAttribute(array $attr)
    {

        // try to load the attribute with the passed attribute ID and merge it with the attributes
        if (isset($this->attributes[$attributeId = (integer) $attr[MemberNames::ATTRIBUTE_ID]])) {
            return $this->mergeEntity($this->attributes[$attributeId], $attr);
        }

        // otherwise simply return the attributes
        return $attr;
    }