private function loadList($listName) { $fileName = PathManager::listSpecFile($listName); $xml = simplexml_load_file($fileName); $optionList = $xml->option; $out = array(); foreach ($optionList as $option) { $out["{$option}" . ''] = $option->text[0] . ''; } $this->storage["{$listName}"] = $out; }
public function loadList($listName) { $fileName = PathManager::listSpecFile($listName); $xml = simplexml_load_file($fileName); $optionList = $xml->option; $out = array(); foreach ($optionList as $option) { $optionKey = $option['key']; $out["{$optionKey}"] = $option->text[0] . ''; } $this->storage["{$listName}"] = $out; $this->pleaseSelectValues["{$listName}"] = $xml->pleaseselect[0]->text[0] . ''; }