public static function BuildEditStatement($p_optArray)
{
$newTag = 'camp_edit';
$newTag .= isset($p_optArray[1]) ? ' object="' . strtolower($p_optArray[1]) . '"' : '';
$newTag .= isset($p_optArray[2]) ? ' attribute="' . strtolower($p_optArray[2]) . '"' : '';
if (isset($p_optArray[3])) {
if (is_integer($p_optArray[3])) {
$newTag .= ' size="' . $p_optArray[3] . '"';
} elseif (strtolower($p_optArray[3]) == 'html') {
$newTag .= ' html_code="';
$newTag .= isset($p_optArray[4]) ? $p_optArray[4] . '"' : '"';
}
}
return $newTag;
}