@@ 188-190 (lines=3) @@ | ||
185 | private function getImportEntryFromPosition($position) { |
|
186 | $nbElt = $this->configContent->import_entry->count(); |
|
187 | for ($i=0; $i < $nbElt; $i++) { |
|
188 | if ($this->configContent->import_entry[$i]['position'] == $position && $this->configContent->import_entry[$i]['enabled'] == 'true') { |
|
189 | return $this->configContent->import_entry[$i]; |
|
190 | } |
|
191 | } |
|
192 | return false; |
|
193 | } |
|
@@ 203-205 (lines=3) @@ | ||
200 | private function getImportEntryFromName($name) { |
|
201 | $nbElt = $this->configContent->import_entry->count(); |
|
202 | for ($i=0; $i < $nbElt; $i++) { |
|
203 | if ($this->configContent->import_entry[$i]['name'] == StringUtil::convertToUTF8($name) && $this->configContent->import_entry[$i]['enabled'] == 'true') { |
|
204 | return $this->configContent->import_entry[$i]; |
|
205 | } |
|
206 | if (isset($this->configContent->import_entry[$i]->altname)) { |
|
207 | foreach ($this->configContent->import_entry[$i]->altname as $altname) { |
|
208 | if ($altname == StringUtil::convertToUTF8($name) && $this->configContent->import_entry[$i]['enabled'] == 'true') { |