Esempio n. 1
0
 public static function getInstance()
 {
     if (!self::$instance) {
         self::$instance = new Mediateca_Init();
     }
     return self::$instance;
 }
Esempio n. 2
0
function mediatecaCreateInstances()
{
    global $mediatecaInit, $mediatecaAdmin, $batchMediateca, $mediatecaRender;
    //class is singleton
    $mediatecaInit = Mediateca_Init::getInstance();
    //class is singleton
    $mediatecaAdmin = Mediateca_Admin::getInstance();
    $batchMediateca = new Batch_Mediateca();
    $mediatecaRender = new Mediateca_Render();
}