示例#1
0
文件: Query.php 项目: clancats/core
 /**
  * Set the query handler
  *
  * @param string 		$handler		The DB handler instance name
  * @return void
  */
 public function handler($handler)
 {
     $this->handler = Handler::create($handler);
 }
示例#2
0
文件: DB.php 项目: clancats/core
 /**
  * Run an sql statement will return the number of affected rows
  *
  * @param string			$query
  * @param array 			$params
  * @return mixed
  */
 public static function run($query, $params = array(), $handler = null)
 {
     return Handler::create($handler)->run($query, $params);
 }
示例#3
0
文件: CCAuth.php 项目: clancats/core
 /** 
  * Sign out a user
  *
  * @param string			$name				The auth instance
  * @return false
  */
 public static function sign_out($name = null)
 {
     return Handler::create($name)->sign_out();
 }