/** * Sets one attribute * * @param string $key * @param string $value * @return void */ protected function _setAttrib($key, $value) { if (key_exists($key, $this->_attribs)) { if (in_array($key, $this->_booleanValues)) { // needed to convert "true" or "false" strings into boolean values $this->_attribs[$key] = Digitalus_Toolbox_String::booleanise($key); } else { $this->_attribs[$key] = (string) $value; } } }