Beispiel #1
0
 /**
  * Constructor
  */
 public function __construct()
 {
     // instantiate the dao
     $db = PVars::getObj('config_rdbms');
     if (!$db) {
         throw new PException('DB config error!');
     }
     $dao = PDB::get($db->dsn, $db->user, $db->password);
     $this->dao =& $dao;
     MOD_params::get()->loadParams();
 }
Beispiel #2
0
 /**
  * used to instantiate an RoxEntityFactory - other than that, just calls the parent
  *
  * @access public
  */
 public function __construct()
 {
     MOD_params::get()->loadParams();
     $this->_entity_factory = new RoxEntityFactory();
     parent::__construct();
 }