/** * this function get all products from database where id = @param $id * * @param type $id * @return type */ public static function getMyProduct($id) { $fields = ["title", "description", "current_price", "id", "front_img"]; $where = "user_id = ? "; $data = AbstractModel::getOnWhereAndOrder("lot", $fields, $where, array($id), "current_price", true); return $data; }