$hint"; } return $string; } public function buildString($name, $type) { } public function parseOptions($configs) { $string = ""; foreach ($configs as $option) { $type = $option['Config']['Type']; $name = $option['Config']['Name']; $value = $option['Config']['Value']; $hint = $option['Config']['Hint']; switch ($type) { case "boolean": $string .= << EOD; break; case "integer": $string .= << EOD; break; case "text": $string .= $this->buildString($name, 'textbox'); $string .= << EOD; break; case "hexadecimal": $string .= << EOD; break; case "decimal": $string .= << EOD; break; case "string": if (strpos($hint, '|') === FALSE) { $string .= << EOD; } else { $string .= <<