public function setAttribute($Name, $Value = '') { if (!is_array($Name)) { $Name = array($Name => $Value); } foreach ($Name as $Key => $Val) { if ($Val === null) { unset($this->_Attributes[$Key]); } $this->_Attributes[$Key] = $Val; } }