public static function &getInstance()
 {
     if (self::$_instance === null) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
示例#2
0
 /**
  * 获取房源扩展数据
  */
 public function getPropExtendInfo($propId)
 {
     $tmp = Model_Fyk_PropLibraryExtend::getInstance()->getDataById($propId);
     $result = array();
     if (!empty($tmp)) {
         foreach ($tmp as $val) {
             $result[$val['id']] = json_decode($val['baseInfo'], true);
         }
     }
     return $result;
 }