Exemplo n.º 1
0
 protected function __construct()
 {
     self::$_db = dbMysql::getInstance();
     if (!self::$_db) {
         return NULL;
     }
 }
Exemplo n.º 2
0
 /**
  * Constructor
  *
  * Initialize the propel connection 
  */
 public function __construct()
 {
     if (!self::$init) {
         // Setup propel
         Propel::init(CONF_ROOT . 'connection.php');
         // flag init state
         self::$init = true;
     }
 }