本文整理汇总了PHP中Horde_Form::unsetVars方法的典型用法代码示例。如果您正苦于以下问题:PHP Horde_Form::unsetVars方法的具体用法?PHP Horde_Form::unsetVars怎么用?PHP Horde_Form::unsetVars使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Horde_Form
的用法示例。
在下文中一共展示了Horde_Form::unsetVars方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$notification->push(sprintf(_("There was a problem adding \"%s\" to the system: %s"), $info['user_name'], $e->getMessage()), 'horde.error');
break;
}
if (isset($info['extra'])) {
try {
$injector->getInstance('Horde_Core_Hooks')->callHook('signup_addextra', 'horde', array($info['user_name'], $info['extra']));
} catch (Horde_Exception $e) {
$notification->push(sprintf(_("Added \"%s\" to the system, but could not add additional signup information: %s."), $info['user_name'], $e->getMessage()), 'horde.warning');
} catch (Horde_Exception_HookNotSet $e) {
}
}
if ($vars->removeQueuedSignup) {
$signup->removeQueuedSignup($info['user_name']);
}
$notification->push(sprintf(_("Successfully added \"%s\" to the system."), $info['user_name']), 'horde.success');
$addForm->unsetVars($vars);
}
}
break;
case 'remove_f':
$f_user_name = $vars->user_name;
$remove_form = true;
break;
case 'remove':
$f_user_name = $vars->user_name;
$vars->remove('user_name');
if ($vars->submit == _("Cancel")) {
break;
}
if (empty($f_user_name)) {
$notification->push(_("You must specify a username to remove."), 'horde.message');