Mercurial > defr > DualBlog
view includes/class.factory.php @ 25:8cbb4f4d890b
Ajout (de nouveau) du favicon
| author | Franck Deroche <webmaster@defr.org> | 
|---|---|
| date | Sun, 28 Oct 2007 19:43:38 +0100 | 
| parents | ff57b45eda37 | 
| children | bdf116822fc6 | 
line wrap: on
 line source
<?php class Factory { private static $db = null; private static $mainTemplate = null; private static $skeleton = null; public static function getDB() { if(is_null(Factory::$db)) Factory::$db = new DataAccess(); return Factory::$db; } public static function getSkeleton() { if(is_null(Factory::$skeleton)) Factory::$skeleton = new Skeleton(); return Factory::$skeleton; } }
