@@ -22,7 +22,7 @@ class Importer extends Configurator
2222 * Pole parsovacích tříd
2323 * @var array
2424 */
25- public $ IEClasses = [];
25+ public $ Classes = [];
2626
2727 /**
2828 * Třída pro hromadné operace s konfigurací
@@ -32,14 +32,14 @@ class Importer extends Configurator
3232 public function __construct ($ params = null )
3333 {
3434 parent ::__construct ();
35- $ this ->registerClass ('\Icinga\Editor\Engine\IETimeperiod ' );
36- $ this ->registerClass ('\Icinga\Editor\Engine\IECommand ' );
37- $ this ->registerClass ('\Icinga\Editor\Engine\IEService ' );
38- $ this ->registerClass ('\Icinga\Editor\Engine\IEServicegroup ' );
39- $ this ->registerClass ('\Icinga\Editor\Engine\IEContact ' );
40- $ this ->registerClass ('\Icinga\Editor\Engine\IEContactgroup ' );
41- $ this ->registerClass ('\Icinga\Editor\Engine\IEHost ' );
42- $ this ->registerClass ('\Icinga\Editor\Engine\IEHostgroup ' );
35+ $ this ->registerClass ('\Icinga\Editor\Engine\Timeperiod ' );
36+ $ this ->registerClass ('\Icinga\Editor\Engine\Command ' );
37+ $ this ->registerClass ('\Icinga\Editor\Engine\Service ' );
38+ $ this ->registerClass ('\Icinga\Editor\Engine\Servicegroup ' );
39+ $ this ->registerClass ('\Icinga\Editor\Engine\Contact ' );
40+ $ this ->registerClass ('\Icinga\Editor\Engine\Contactgroup ' );
41+ $ this ->registerClass ('\Icinga\Editor\Engine\Host ' );
42+ $ this ->registerClass ('\Icinga\Editor\Engine\Hostgroup ' );
4343 if (is_array ($ params )) {
4444 $ this ->setData ($ params );
4545 }
@@ -53,15 +53,15 @@ public function __construct($params = null)
5353 public function registerClass ($ className )
5454 {
5555 $ newClass = new $ className ;
56- $ this ->IEClasses [$ newClass ->keyword ] = new $ className ;
56+ $ this ->Classes [$ newClass ->keyword ] = new $ className ;
5757 }
5858
5959 /**
6060 * Znovu vytvoří struktury tabulek obejktů
6161 */
6262 public function dbInit ()
6363 {
64- foreach ($ this ->IEClasses as $ IEClass ) {
64+ foreach ($ this ->Classes as $ IEClass ) {
6565 $ IEClass ->dbInit ();
6666 }
6767 }
@@ -117,7 +117,7 @@ public function importCfg($cfg)
117117 $ this ->setDataValue ('register ' , 1 );
118118 }
119119
120- foreach ($ this ->IEClasses as $ IEClass ) {
120+ foreach ($ this ->Classes as $ IEClass ) {
121121 $ doneCount += $ IEClass ->importArray ($ cfg , $ this ->getData ());
122122 }
123123 if ($ doneCount ) {
@@ -137,7 +137,7 @@ public function importCfg($cfg)
137137 */
138138 public function writeConfigs ($ fileName )
139139 {
140- foreach ($ this ->IEClasses as $ ieClass ) {
140+ foreach ($ this ->Classes as $ ieClass ) {
141141 if ($ ieClass ->writeConfig ($ fileName )) {
142142 $ this ->addStatusMessage ($ ieClass ->keyword .': ' ._ ('konfigurace byla vygenerována ' ),
143143 'success ' );
0 commit comments