コード例 #1
0
 /**
  * Creates a investment object on the basis of data from the database.
  * @param array $row
  * @return Investment
  */
 protected static function BuildInvestment($row)
 {
     $inv = new Investment($row['id_lng'], $row['id'], $row['no'], $row['number'], $row['name'], $row['description'], $row['short_description'], $row['contact'], $row['map_marker'], $row['garage'], $row['pool'], $row['terrace'], $row['air_conditioning'], $row['house_project'], $row['special'], $row['creation_date'], $row['due_date'], $row['total_area'], $row['gross_volume'], $row['area_from'], $row['area_to'], $row['price_from'], $row['price_to'], $row['pricem2_from'], $row['pricem2_to'], $row['floor_from'], $row['floor_to'], $row['rooms_no_from'], $row['rooms_no_to'], $row['country'], $row['province'], $row['district'], $row['location'], $row['quarter'], $row['region'], $row['street'], $row['category'], $row['departments_id']);
     //buildings
     $inv->SetBuildings(InvestmentBuildings::GetInvestmentBuildings($row['id'], $row['id_lng']));
     return $inv;
 }