/** * A private method to "flatten" a delivery limitation into the string format that is * saved to the database (either in the acls, acls_channel or banners table, when part * of a compiled limitation string). * * Flattens the browser code array into string format. * * @access private * @param mixed $data An optional, expanded form delivery limitation. * @return string The delivery limitation in flattened format. */ function _flattenData($data = null) { $result = parent::_flattenData($data); if (is_array($result)) { return implode($this->delimiter, $result); } return $result; }
/** * A private method to "flatten" a delivery limitation into the string format that is * saved to the database (either in the acls, acls_channel or banners table, when part * of a compiled limitation string). * * Flattens the country and city list array into string format. * * @access private * @param mixed $data An optional, expanded form delivery limitation. * @return string The delivery limitation in flattened format. */ function _flattenData($data = null) { $data = parent::_flattenData($data); return MAX_limitationsGeoCitySerialize($data); }