public function __construct($smarty, $basetpl = "", $pagetitle = "", $pagename = "") { $this->logger = logger::getRootlogger(); if (defined('SESSION')) { $this->session = SESSION; } else { $this->logger->debug("Session is not defined"); } if (defined('MODULE')) { $this->module = MODULE; } else { $this->logger->debug("Module is not defined"); } if (defined('ACTION')) { $this->action = ACTION; } else { $this->logger->debug("Action is not defined"); } $this->smarty = $smarty; $this->viewdata["pagetitle"] = $pagetitle; $this->viewdata["pagename"] = $pagename; if (strlen($basetpl) == 0) { $this->viewdata["basetpl"] = "index.tpl"; } else { $this->viewdata["basetpl"] = $basetpl; } }
public function __construct($type, $logger) { $this->logger = $logger; $this->logger->info("Function constructor in ModelAccess"); $this->dbobj = new ModelObject($type); $this->logger = logger::getRootlogger(); return true; }
public function __construct() { $this->logger = logger::getRootlogger(); if (defined("SIZETYPE")) { $this->data["sizetype"] = SIZETYPE; } else { $this->data["sizetype"] = "medium"; } }
public function __construct() { $this->logger = logger::getRootlogger(); $this->logger->info("Calling Constructor in MysqliManager"); $this->data["username"] = DATABASE_USER; $this->data["password"] = DATABASE_PASS; $this->data["host"] = DATABASE_HOST; $this->data["port"] = DATABASE_PORT; $this->data["database"] = DATABASE_NAME; }
public function __construct($type) { $this->logger = logger::getRootlogger(); if (strtolower($type) == "mysqli") { $this->database = new Mysqli(); } else { if (strtolower($type) == "mysql") { $this->database = new MysqlManager(); } else { $this->database = null; return false; } } $this->query = new Query($this->database); $this->nonquery = new NonQuery($this->database); return true; }
public function Query($database) { $this->connection = $database; $this->logger = logger::getRootlogger(); $this->logger->info("Calling Constructor in Query"); }
public function __set($key, $val) { $key = strtolower($key); $this->data[$key] = $val; $this->logger = logger::getRootlogger(); }
*/ define("TEMP_DIR", "tmp/"); /* **************************************************************************** */ /* * Custom variable witch is define in file placed in directory config/smarty.config.php */ include_once "smarty.config.php"; define('GV_VAR', serialize($gv_var)); /* **************************************************************************** */ /* * Include database configuration file. */ include_once "dbconfig.php"; /* **************************************************************************** */ /* * Include common library file. The function contains this file can be access from anywhere directly. */ include_once "common.lib.php"; /* **************************************************************************** */ /* * Include controller file. */ include_once "Controller.php"; /* **************************************************************************** */ /* * Include logger class to implement debug, error and fatal log feature. */ require_once "Logger.php"; Logger::configure(LOG4PHP_CONFIGURATION); $logger = logger::getRootlogger(); /* **************************************************************************** */
public function __construct() { $this->logger = logger::getRootlogger(); }