'',
'desc_value' => '',
'title' => '',
'container_number' => 0);
$extractParams = array(
'name',
'id_value',
'desc_value',
'title',
'container_number');
/* verifica se todos os parâmetros obrigatórios foram passados */
foreach ($requiredParams as $required)
if (!array_key_exists($required, $params) || (empty($params[$required])))
$smarty->trigger_error("[wf_select_user] missing required parameter(s): $required", E_USER_ERROR);
/* atribui valores default para os parâmetros não passados */
foreach ($defaultValues as $key => $value)
if (!isset($params[$key]))
$params[$key] = $value;
/* extrai alguns parâmetros da matriz de parâmetros */
foreach ($extractParams as $extract)
$$extract = $params[$extract];
$name_desc = $name . "_desc";
$digest = md5($_SERVER['REQUEST_URI']);
$extraParams = "container_number=$container_number&digest=$digest";
$output = <<
EOF;
$templateServer = &Factory::getInstance('TemplateServer');
$imageAdd = $templateServer->generateImageLink('add.png');
$imageRemove = $templateServer->generateImageLink('close.png');
$output .= <<
EOF;
return $output;
}
?>