public function setOptions(array $options)
    {
        foreach ($options as $key => $value) {
            $this->options[$key] = $value;
            $value && $this->object->$key = $value;
        }

        return $this;
    }
public function setOptions(array $options)
    {
        foreach ($options as $key => $value) {
            $this->options[$key] = $value;
            $value && $this->object->$key = $value;
        }

        return $this;
    }
public function setOptions ( array $ options ) { foreach ( $ options as $ key => $ value ) { $ this -> options [ $ key ] = $ value ; $ value && $ this -> object -> $ key = $ value ; } return $ this ; }
Set property value for Smarty

@param array $options
@return Smarty
Set property value for Smarty