示例#1
0
文件: Query.php 项目: v3u3i87/upadd
 /**
  * 单行查询
  * @param null $_field
  * @return mixed
  */
 protected function find($_field = null)
 {
     $this->joint_field($_field);
     $this->_db->_sql = 'SELECT ' . $this->mergeSqlLogic() . ';';
     $this->clear_where();
     return $this->_db->find();
 }
示例#2
0
文件: Cart.php 项目: rgnevashev/cart
 /**
  * Returns the first occurance of an item with a given id
  * 
  * @param  string $id The item id
  * @return Item       Item object
  */
 public function find($id)
 {
     return $this->store->find($id);
 }
示例#3
0
文件: Model.php 项目: v3u3i87/run_cli
 /**
  * 单行查询
  * @param null $_field
  * @return mixed
  */
 public function find($_field = null)
 {
     return $this->_db->find(' SELECT ' . $this->lodeField($_field) . $this->mergeSql());
 }