Exemple #1
0
 /**
  * Method to get an instance of class_carrier though the constructor is private
  *
  * @return class_carrier
  */
 public static function getInstance()
 {
     if (self::$objCarrier == null) {
         self::$objCarrier = new class_carrier();
         //            $objConfig = self::$objCarrier->getObjConfig();
         //            $objDB = self::$objCarrier->getObjDB();
         //so, lets init the constants
         //            if(!defined("_block_config_db_loading_")) {
         //                $objConfig->loadConfigsDatabase($objDB);
         //            }
         //and init the internal session
         //SIR 2010/03: deactivated session startup right here.
         //The session-start is handled by class_session internally to avoid
         //senseless db-updates, e.g. when manipulating images
         //self::$objCarrier->getObjSession()->initInternalSession();
         //include relevant classes for possible static init blocks
         class_classloader::getInstance()->includeClasses();
     }
     return self::$objCarrier;
 }