$hint"; } return $string; } public function parseOptions($configs) { $category = $configs[0]['Config']['Category']; $string = ""; foreach ($configs as $option) { $type = $option['Config']['Type']; $name = $option['Config']['Name']; $value = $option['Config']['Value']; $hint = $option['Config']['Hint']; $id = $option['Config']['Id']; switch ($type) { case "boolean": $string .= <<
EOD; break; case "text": $string .= <<
EOD; break; case "string": if (strpos($hint, '|') === FALSE) { $string .= <<
EOD; } else { $string .= <<
EOD; } $string .= "\n"; } return $string; } } ?>