예제 #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());
 }