public function __construct($params, $slave_params) { parent::__construct($params); $this->params = $slave_params[array_rand($slave_params)]; $this->params['dbname'] = $params['dbname']; $this->params['prefix'] = $params['prefix']; }
/** * [__construct description] * @param string */ public function __construct(rifCore $rifCore, $model){ $this->model = $model; $this->lng = $rifCore->core['lng']; parent::__construct($rifCore); $this->getModelClassAnnotations(); $this->pdoHelper = new pdoHelper($this->lng); $this->config = $rifCore->core['config']; }
public function __construct() { parent::__construct(); if (session_status() == PHP_SESSION_NONE) { session_start(); } $this->basePath = dirname(__FILE__); $this->rootPath = dirname(dirname(__FILE__)); }
/** * __construct function. * * @access public * @param mixed $course_id * @return void */ public function __construct($group_id = null) { parent::__construct(); $this->basePath = dirname(__FILE__); //Individual Course if (!is_null($group_id)) { //$this->info = $this->assignmentInfo($assignment_id); $this->group_id = $group_id; } }
public function __construct($file = null) { parent::__construct(); $this->basePath = dirname(dirname(dirname(__FILE__))); $this->user = user::authService(); if (!is_null($file)) { $this->file = $file; } $this->questionPath = $this->basePath . "/" . $this->masterFolder . "/questions/"; }
public function __construct($course_id = null) { parent::__construct(); $this->basePath = dirname(__FILE__); //user::authService() = user::authService(); //Individual Course if (!is_null($course_id)) { $this->course_id = $course_id; $this->info = $this->courseInfo($course_id); } }
<?php include_once("common.php"); $connectSql=new mysql(); $connectSql->__header(); $connectSql->__construct(); $newsid=$_REQUEST['newsid']; $sql="DELETE FROM news WHERE newsid = ".$newsid.""; $result=$connectSql->query($sql); if(!$result) { echo json_encode("error"); die('Error'.mysql_error()); }else { echo json_encode("success"); } $connectSql->dbClose(); ?>
/** * __construct function. * * @access public * @param mixed $assignment_id * @return void */ public function __construct($assignment_id) { parent::__construct(); $this->basePath = dirname(__FILE__); $this->assignment_id = $assignment_id; }
function __construct($table) { parent::__construct(); $this->setTable($table); }
function __construct() { parent::__construct(); }