getParams(); $taskName = strtolower($class->getTaskName()); $html = ''; if (is_array($inputParams)) { foreach ($inputParams as $key => $param) { $escapedParam = (isset($schedulerParams[$key])) ? smarty_modifier_escape($schedulerParams[$key]) : ''; $inputKey = $taskName . '_' . $key; switch ($param['type']) { case 'text': $input = ''; break; case 'password': $input = ''; break; case 'textarea': $input = ''; break; case 'select': //@todo implement break; } $required = ! empty($param['required']) ? ' *' : ''; $infoHtml = ''; if (! empty($param['description'])) { $description = smarty_modifier_escape($param['description']); $icon = smarty_function_icon(['name' => 'information'], $smarty); $infoHtml = << {$icon} HTML; } $html .= <<
{$input} {$infoHtml}
HTML; } } echo $html; }