if (empty($options)) { return self::
$_options;
} foreach ($options as $name =>
$value) { $name =
strtolower($name);
if (array_key_exists($name, self::
$_options)) { switch($name) { case 'format_type' :
if ((strtolower($value) != 'php'
) && (strtolower($value) != 'iso'
)) { throw new Zend_Date_Exception("Unknown format type (
$value) for dates, only 'iso' and 'php' supported", 0, null,
$value);
} break;
case 'fix_dst' :
if (!
is_bool($value)) { throw new Zend_Date_Exception("'fix_dst' has to be boolean", 0, null,
$value);
} break;
case 'extend_month' :
if (!
is_bool($value)) { throw new Zend_Date_Exception("'extend_month' has to be boolean", 0, null,
$value);
}