public static function getImpl($link, $tablepre) { if (empty(self::$impl)) { self::$impl = new DAOImpl($link, $tablepre); } return self::$impl; }
public function __construct($dbCompany, $schemaParameter) { parent::__construct($dbCompany); $this->setQuery($schemaParameter); }
public function __construct() { parent::__construct(); $this->setQuery(); }
public function __construct($dbCompany, $queryParameter) { parent::__construct($dbCompany); $this->setQuery($queryParameter); $this->init(); }
public function __construct($dbCompany, $schemaParameter, $tableParameter, $fase) { parent::__construct($dbCompany); $this->setQuery($schemaParameter, $tableParameter); $this->fase = $fase; }
public function __construct($dbCompany) { parent::__construct($dbCompany); $this->setQuery(); }
<?php //session start and enable gzip session_start(); //ob_start('bg_gzhandler'); //require commons $includePath = dirname(__FILE__); require_once "{$includePath}/constant.php"; require_once "{$includePath}/sessionCheck.php"; require_once "{$includePath}/config.php"; require_once "{$includePath}/util.php"; require_once "{$includePath}/../lang/zh_cn.php"; require_once "{$includePath}/../dao/wrapper.php"; require_once "{$includePath}/../dao/implements.php"; require_once "{$includePath}/../dao/dbpool.php"; require_once "{$includePath}/menus.php"; if ($config[NEEDDB]) { //if need db $dbLink = DBPool::getLink($config[DBDRIVER]); $daoImpl = DAOImpl::getImpl($dbLink, $config[TABLEPRE][BACKEND]); $config[DBLINK] = $dbLink; $config[DAOIMPL] = $daoImpl; } //filter get and post parameters cleanParameters($_GET); cleanParameters($_POST);