Documentation TYPO3 par Ameos

compat_php5.php

00001 <?php
00015 eval('
00016     function clone($object)
00017     {
00018         // Sanity check
00019         if (!is_object($object)) {
00020             user_error(\'clone() __clone method called on non-object\', E_USER_WARNING);
00021             return;
00022         }
00023 
00024         // Use serialize/unserialize trick to deep copy the object
00025         $object = unserialize(serialize($object));
00026 
00027         // If there is a __clone method call it on the "new" class
00028         if (method_exists($object, \'__clone\')) {
00029             $object->__clone();
00030         }
00031 
00032         return $object;
00033     }
00034 ');
00035 
00036 
00037 ?>


Généré par Les spécialistes TYPO3 avec  doxygen 1.4.6