コード例 #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());
 }