本文整理汇总了PHP中mysql::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP mysql::__construct方法的具体用法?PHP mysql::__construct怎么用?PHP mysql::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mysql
的用法示例。
在下文中一共展示了mysql::__construct方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
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: __construct
/**
* [__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: __construct
public function __construct()
{
parent::__construct();
if (session_status() == PHP_SESSION_NONE) {
session_start();
}
$this->basePath = dirname(__FILE__);
$this->rootPath = dirname(dirname(__FILE__));
}
示例4: __construct
/**
* __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: __construct
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: __construct
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: mysql
<?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: __construct
/**
* __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:
function __construct($table)
{
parent::__construct();
$this->setTable($table);
}
示例10:
function __construct()
{
parent::__construct();
}