| // +----------------------------------------------------------------------+ // // $Id$ /** * Replace function is_a() * * @category PHP * @package PHP_Compat * @link http://php.net/function.is_a * @author Aidan Lister * @version $Revision: 1.16 $ * @since PHP 4.2.0 * @require PHP 4.0.0 (user_error) (is_subclass_of) */ if (!function_exists('is_a')) { function is_a($object, $class) { if (!is_object($object)) { return false; } if (get_class($object) == strtolower($class)) { return true; } else { return is_subclass_of($object, $class); } } } ?>