示例#1
0
 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'];
 }
示例#2
0
	/**
	 * [__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'];
	}
示例#3
0
 public function __construct()
 {
     parent::__construct();
     if (session_status() == PHP_SESSION_NONE) {
         session_start();
     }
     $this->basePath = dirname(__FILE__);
     $this->rootPath = dirname(dirname(__FILE__));
 }
示例#4
0
 /**
  * __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;
     }
 }
示例#5
0
 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/";
 }
示例#6
0
 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);
     }
 }
示例#7
0
<?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();
?>
示例#8
0
 /**
  * __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;
 }
示例#9
0
 function __construct($table)
 {
     parent::__construct();
     $this->setTable($table);
 }
示例#10
0
 function __construct()
 {
     parent::__construct();
 }