當前位置: 首頁>>代碼示例>>PHP>>正文


PHP mysql::__construct方法代碼示例

本文整理匯總了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'];
 }
開發者ID:rainbow88,項目名稱:hummel,代碼行數:7,代碼來源:mysql_slave.class.php

示例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'];
	}
開發者ID:elribonazo,項目名稱:riframework,代碼行數:12,代碼來源:rifModel.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     if (session_status() == PHP_SESSION_NONE) {
         session_start();
     }
     $this->basePath = dirname(__FILE__);
     $this->rootPath = dirname(dirname(__FILE__));
 }
開發者ID:TinoChow9792,項目名稱:CodeTogether,代碼行數:9,代碼來源:user.php

示例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;
     }
 }
開發者ID:TinoChow9792,項目名稱:CodeTogether,代碼行數:17,代碼來源:chat.php

示例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/";
 }
開發者ID:TinoChow9792,項目名稱:CodeTogether,代碼行數:10,代碼來源:file.php

示例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);
     }
 }
開發者ID:TinoChow9792,項目名稱:CodeTogether,代碼行數:11,代碼來源:course.php

示例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();
?>
開發者ID:qianjune,項目名稱:jikexueyuan_homework,代碼行數:22,代碼來源:del.php

示例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;
 }
開發者ID:TinoChow9792,項目名稱:CodeTogether,代碼行數:13,代碼來源:testcase.php

示例9:

 function __construct($table)
 {
     parent::__construct();
     $this->setTable($table);
 }
開發者ID:PapaKot,項目名稱:Horowitz,代碼行數:5,代碼來源:mysqlTable.php

示例10:

 function __construct()
 {
     parent::__construct();
 }
開發者ID:exiaohao,項目名稱:SimplyFramework,代碼行數:4,代碼來源:core.php


注:本文中的mysql::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。