Exemplo n.º 1
0
 /**
  * Set the query handler
  *
  * @param string 		$handler		The DB handler instance name
  * @return void
  */
 public function handler($handler)
 {
     $this->handler = Handler::create($handler);
 }
Exemplo n.º 2
0
Arquivo: DB.php Projeto: 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);
 }
Exemplo n.º 3
0
 /** 
  * 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();
 }