/** * A private method to "expand" a delivery limitation from the string format that * is saved in the database (ie. in the acls or acls_channel table) into its * "expanded" form. * * Expands the string format into an array of browser codes. * * @access private * @param string $data An optional, flat form delivery limitation data string. * @return mixed The delivery limitation data in expanded format. */ function _expandData($data = null) { $result = parent::_expandData($data); if (!is_array($result)) { return strlen($result) ? explode($this->delimiter, $result) : array(); } return $result; }
/** * A private method to "expand" a delivery limitation from the string format that * is saved in the database (ie. in the acls or acls_channel table) into its * "expanded" form. * * Expands the string format into an array of the country, and a comma separated * string of cities. * * @access private * @param string $data An optional, flat form delivery limitation data string. * @return mixed The delivery limitation data in expanded format. */ function _expandData($data = null) { $data = parent::_expandData($data); return MAX_limitationsGeoCityUnserialize($data); }