- Timestamp:
- 2012/09/14 09:28:39 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-multilang/data/class/api/operations/AddrFromZip.php
r21867 r22032 34 34 35 35 protected $operation_name = 'AddrFromZip'; 36 protected $operation_description = ' 郵便番号から住所を検索します。';36 protected $operation_description = ''; 37 37 protected $default_auth_types = self::API_AUTH_TYPE_REFERER; 38 38 protected $default_enable = '1'; … … 40 40 protected $default_sub_data = ''; 41 41 42 public function __construct() { 43 parent::__construct(); 44 $this->operation_description = SC_I18n_Ex::t('API_ADDRFROMZIP_DESC'); 45 } 46 42 47 public function doAction($arrParam) { 43 48 $arrRequest = $this->doInitParam($arrParam); 44 49 if (!$this->isParamError()) { 45 50 $zipcode = $arrRequest['zip1'] . $arrRequest['zip2']; 46 $arrAddrList = SC_Utils_Ex::sfGetAddress($zipcode); 51 $arrAddrList = SC_Utils_Ex::sfGetAddress($zipcode); 47 52 if (!SC_Utils_Ex::isBlank($arrAddrList)) { 48 53 $this->setResponse('Address', array( … … 59 64 60 65 protected function lfInitParam(&$objFormParam) { 61 $objFormParam->addParam( '郵便番号1', 'zip1', ZIP01_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));62 $objFormParam->addParam( '郵便番号2', 'zip2', ZIP02_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK'));66 $objFormParam->addParam(SC_I18n_Ex::t('PARAM_LABEL_ZIP1'), 'zip1', ZIP01_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 67 $objFormParam->addParam(SC_I18n_Ex::t('PARAM_LABEL_ZIP2'), 'zip2', ZIP02_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 63 68 } 64 69
Note: See TracChangeset
for help on using the changeset viewer.
