public static function parseNumForms($formId, $sentForms)
{
// redefine
$formId = (int) $formId;
$sentForms = (int) $sentForms;
// one form sent
if ($sentForms == 1) {
$output = BL::getMessage('OneSentForm');
} elseif ($sentForms > 1) {
// multiple forms sent
$output = sprintf(BL::getMessage('SentForms'), $sentForms);
} else {
// no forms sent
$output = sprintf(BL::getMessage('SentForms'), $sentForms);
}
// check if data action is allowed
if (BackendAuthentication::isAllowedAction('Data', 'FormBuilder')) {
// output
$output = '<a href="' . BackendModel::createURLForAction('Data') . '&id=' . $formId . '" title="' . $output . '">' . $output . '</a>';
}
return $output;
}