Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Ini.php
Go to the documentation of this file.
1 <?php
23 #require_once 'Zend/Locale.php';
24 
26 #require_once 'Zend/Translate/Adapter.php';
27 
35 {
36  private $_data = array();
37 
48  protected function _loadTranslationData($data, $locale, array $options = array())
49  {
50  $this->_data = array();
51  if (!file_exists($data)) {
52  #require_once 'Zend/Translate/Exception.php';
53  throw new Zend_Translate_Exception("Ini file '".$data."' not found");
54  }
55 
56  $inidata = parse_ini_file($data, false);
57  if (!isset($this->_data[$locale])) {
58  $this->_data[$locale] = array();
59  }
60 
61  $this->_data[$locale] = array_merge($this->_data[$locale], $inidata);
62  return $this->_data;
63  }
64 
70  public function toString()
71  {
72  return "Ini";
73  }
74 }
_loadTranslationData($data, $locale, array $options=array())
Definition: Ini.php:48