자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
/** * @param string $lang - language Id * @return array - list of all cities */ public static function getAllCities($lang) { static $result = null; if ($result === null) { $result = array(); $dbCityList = \CSaleLocation::GetCityList(array(), array(), $lang); while ($arCity = $dbCityList->GetNext()) { $result[$arCity["ID"]] = $arCity["NAME_LANG"]; } } return $result; }