Example #1
0
 static function getPropertyDetailNew($p_intPropertyID, $cityId, $p_bolStrictRefreshCache = false, $p_bolStrictMaster = false, $p_bolSynIDC = false)
 {
     $objORM = new ORM_PropertyORM('ajk_propertys', $p_bolStrictMaster);
     $objORM->PROID = $p_intPropertyID;
     $objORM->CITYID = $cityId;
     $arrProperty = $objORM->getRow($p_bolStrictRefreshCache, $p_bolSynIDC);
     apf_require_class('DAO_Property_sp');
     if ($arrProperty['TRADETYPE'] == 1) {
         $arrExt = DAO_Property_sp::getPropertySale($p_intPropertyID, $p_bolStrictRefreshCache, $p_bolStrictMaster);
     } else {
         $arrExt = DAO_Property_sp::getPropertyRent($p_intPropertyID, $p_bolStrictRefreshCache, $p_bolStrictMaster);
     }
     if (!is_array($arrProperty)) {
         $arrProperty = array();
     }
     if (!is_array($arrExt)) {
         $arrExt = array();
     }
     unset($arrExt['URICODE']);
     return array_merge($arrProperty, $arrExt);
 }