public static function &getInstance() { if (self::$_instance === null) { self::$_instance = new self(); } return self::$_instance; }
/** * 获取信息的单价,单位分 */ public function getPropUnitPrice($cityId, $startDate, $type) { $tmpPrice = Model_Fyk_CityPriceConfig::getInstance()->getCityPrice($cityId, $startDate, $type); if (!empty($tmpPrice)) { return intval($tmpPrice['discountPrice']); } else { return 0; } }