Example #1
0
 /**
  * @Author: ANH DUNG Jun 26, 2014
  * @Todo: get scenario
  * @Param: $model Listing
  */
 public static function getScenarioOfListing($model)
 {
     $res = '';
     $scenario = ProPropertyType::getScenarioGroupShow($model->property_type_2);
     if (!empty($scenario)) {
         $res = $scenario;
     }
     // vì cả property_type_2 và property_type_1 đều có chưa group show scenario nên ở đây
     // làm ưu tiên cho property_type_1
     $scenario = ProPropertyType::getScenarioGroupShow($model->property_type_1);
     if (!empty($scenario)) {
         $res = $scenario;
     }
     return $res;
 }