本文整理汇总了PHP中FormBuilder::perform_maintenance方法的典型用法代码示例。如果您正苦于以下问题:PHP FormBuilder::perform_maintenance方法的具体用法?PHP FormBuilder::perform_maintenance怎么用?PHP FormBuilder::perform_maintenance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormBuilder
的用法示例。
在下文中一共展示了FormBuilder::perform_maintenance方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: formbuilder_maintain
function formbuilder_maintain($name)
{
// We need the object whether or not there are any questions in it
$formbuilder = new FormBuilder();
$formbuilder->load($name);
$data = $_POST['data'];
switch ($_POST['edit']['step']) {
// Generate confirmation page
case 'confirm':
// TODO generate the confirmation; for now, just save changes
//$rc = $formbuilder->perform_maintenance( $data );
//$rc .= $formbuilder->render_confirmation();
//break;
// TODO generate the confirmation; for now, just save changes
//$rc = $formbuilder->perform_maintenance( $data );
//$rc .= $formbuilder->render_confirmation();
//break;
case 'perform':
$rc = $formbuilder->perform_maintenance($data);
$rc .= $formbuilder->save(true);
$rc .= $formbuilder->render_maintenance();
break;
default:
$rc = $formbuilder->render_maintenance();
}
return $rc;
}