function _preCompile($sData)
 {
     $aData = $this->_expandData($sData);
     $aItems = MAX_limitationsGetPreprocessedArray($aData);
     return $this->_flattenData($aItems);
 }
예제 #2
0
 /**
  * A private method to pre-compile limitaions.
  *
  * @access private
  * @param mixed $data An optional, expanded form delivery limitation.
  * @return string The delivery limitation in pre-compiled form, with any changes to the format
  *                of the data stored in the database having been made, ready to be used for
  *                either compiling the limitation into final form, or converting the limitation
  *                into SQL form.
  */
 function _preCompile($sData)
 {
     $aData = MAX_limitationsGeoCityUnserialize($sData);
     $sCountry = MAX_limitationsGetCountry($aData);
     MAX_limitationsSetCountry($aData, MAX_limitationsGetPreprocessedString($sCountry));
     $sCities = MAX_limitationsGetSCities($aData);
     $aCities = MAX_limitationsGetAFromS($sCities);
     $aCities = MAX_limitationsGetPreprocessedArray($aCities);
     MAX_limitationsSetSCities($aData, MAX_limitationsGetSFromA($aCities));
     return MAX_limitationsGeoCitySerialize($aData);
 }