Exemplo n.º 1
0
 public static function &getInstance()
 {
     if (self::$_instance === null) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Exemplo n.º 2
0
 /**
  * 获取二手房那天城市价格
  * @param $data
  * @return bool|mixed|null
  */
 public function getSalePrice($cityId, $startDate, $status = 1)
 {
     $tmpPrice = Model_Broker_EntrustPriceSale::getInstance()->getCityPrice($cityId, $startDate, $status);
     if (!empty($tmpPrice)) {
         return intval($tmpPrice->discountPrice);
     } else {
         return 0;
     }
 }