[ Index ] |
|
Code source de SPIP Agora 1.4 |
1 --TEST-- 2 Log: Singleton 3 --FILE-- 4 <?php 5 6 require_once 'Log.php'; 7 8 $console1 = &Log::singleton('console'); 9 $console2 = &Log::singleton('console'); 10 11 if (is_a($console1, 'Log_console') && is_a($console2, 'Log_console')) 12 { 13 echo "Two Log_console objects.\n"; 14 } 15 16 if ($console1->_id == $console2->_id) { 17 echo "The objects have the same ID.\n"; 18 } 19 20 --EXPECT-- 21 Two Log_console objects. 22 The objects have the same ID.
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 14:40:03 2007 | par Balluche grâce à PHPXref 0.7 |