Mercurial > defr > DualBlog
view includes/class.factory.php @ 19:45e0723a0169
Suppression de deux fichiers inutiles. Symlinks pour le logo.
Les deux logos de DualBlog étaient rigoureusement identiques,
mais pour pouvoir y acceder avec ou sans majuscules une copie
avait été faite. C'est remplacé par un symlink...
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Fri, 26 Oct 2007 16:39:06 +0200 |
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; } }