00001 <?php 00002 // +----------------------------------------------------------------------+ 00003 // | PHP Version 4 | 00004 // +----------------------------------------------------------------------+ 00005 // | Copyright (c) 1997-2004 The PHP Group | 00006 // +----------------------------------------------------------------------+ 00007 // | This source file is subject to version 3.0 of the PHP license, | 00008 // | that is bundled with this package in the file LICENSE, and is | 00009 // | available at through the world-wide-web at | 00010 // | http://www.php.net/license/3_0.txt. | 00011 // | If you did not receive a copy of the PHP license and are unable to | 00012 // | obtain it through the world-wide-web, please send a note to | 00013 // | license@php.net so we can mail you a copy immediately. | 00014 // +----------------------------------------------------------------------+ 00015 // | Authors: Aidan Lister <aidan@php.net> | 00016 // +----------------------------------------------------------------------+ 00017 // 00018 // $Id: is_a.php 2 2009-03-16 20:22:51Z ggiunta $ 00019 00020 00032 if (!function_exists('is_a')) { 00033 function is_a($object, $class) 00034 { 00035 if (!is_object($object)) { 00036 return false; 00037 } 00038 00039 if (get_class($object) == strtolower($class)) { 00040 return true; 00041 } else { 00042 return is_subclass_of($object, $class); 00043 } 00044 } 00045 } 00046 00047 ?>
Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved. MyOOS [Shopsystem] is Free Software released under the GNU/GPL License. Webmaster: info@r23.de (Impressum) |
|