$classname = strtolower($classname);
reset($this->_method_map);
while (list($method, $obj) = each($this->_method_map)) {
- if (get_class($obj) == $classname) {
+ if (is_a($obj, $classname)) {
unset($this->_method_map[$method]);
$ok = true;
}
function &setFrontendClass($uiclass)
{
if (is_object($GLOBALS['_PEAR_Command_uiobject']) &&
- strtolower($uiclass) == get_class($GLOBALS['_PEAR_Command_uiobject'])) {
+ is_a($GLOBALS['_PEAR_Command_uiobject'], $uiclass)) {
return $GLOBALS['_PEAR_Command_uiobject'];
}
if (!class_exists($uiclass)) {