/** * 2016-11-13 * @param AE|E $e * @param string $key * @param int|null|callable $default [optional] * @return string[] */ function df_fe_fc_csv(AE $e, $key, $default = 0) { return df_csv_parse(df_fe_fc($e, $key, $default)); }
/** * 2015-12-28 * @param int|string|null|bool|IStore $store [optional] * @return string[] */ function df_country_codes_allowed($store = null) { return df_csv_parse(df_cfg('general/country/allow', $store)); }
/** * 2016-11-13 * @used-by \Df\Payment\Method::amountFormat() * @used-by \Df\Payment\Method::amountParse() * @return int */ protected function amountFactor() { return df_find(function ($factor, $list) { return '*' === $list || in_array($this->cPayment(), is_array($list) ? $list : df_csv_parse($list)); }, $this->amountFactorTable(), [], [], DF_BEFORE) ?: 100; }
/** * 2016-03-14 * @param string|null $key [optional] * @param null|string|int|S|Store $s [optional] * @return string[] */ public function csv($key = null, $s = null) { return df_csv_parse($this->v($key ?: df_caller_f(), $s)); }
/** * 2016-06-30 * 2016-11-13 * Отныне в качестве $iso3 можно передавать список валют в виде строки, * перечисляя их через запятую. Так, например, делает модуль «Omise»: <argument name='iso3' xsi:type='string'>THB,JPY</argument> * https://code.dmitry-fedyuk.com/m2e/omise/blob/0.0.7/etc/adminhtml/di.xml#L18 * @param string $iso3 */ public function __construct($iso3) { $this->_iso3 = df_csv_parse($iso3); }
/** * @param string|null $s * @return int[] */ function df_csv_parse_int($s) { return df_int(df_csv_parse($s)); }