示例#1
0
文件: Query.php 项目: clancats/core
 /**
  * Build and execute the current query
  * This wil run the local build function and pass the parameters
  * from the builder object in the handler
  *
  * @param string 		$handler
  * @return mixed
  */
 public function run($handler = null)
 {
     if (!is_null($handler)) {
         $this->handler($handler);
     }
     return $this->handler->run($this->build(), $this->handler->builder()->parameters);
 }