public function setAttribute($key, $value = null)
    {
        if ($key === 'name' && stristr($value, $this->getMultiValueSuffix()) !== false) {
            $this->setMultiValue(true);
        }

        parent::setAttribute($key, $value);
    }
public function setAttribute($key, $value = null)
    {
        if ($key === 'name' && stristr($value, $this->getMultiValueSuffix()) !== false) {
            $this->setMultiValue(true);
        }

        parent::setAttribute($key, $value);
    }
public function setAttribute ( $ key , $ value = null ) { if ( $ key === 'name' && stristr ( $ value , $ this -> getMultiValueSuffix ( ) ) !== false ) { $ this -> setMultiValue ( true ) ; } parent :: setAttribute ( $ key , $ value ) ; }
Setter for attributes.

@param string $key   The key/name of the attribute to set
@param string $value The value to set

@author Benjamin Carl <opensource@clickalicious.de>
Setter for attributes .