本文整理汇总了PHP中controller::reset方法的典型用法代码示例。如果您正苦于以下问题:PHP controller::reset方法的具体用法?PHP controller::reset怎么用?PHP controller::reset使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类controller
的用法示例。
在下文中一共展示了controller::reset方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: controller
}
if ($findback['findback'] != null) {
require_once '../model/done.php';
$contr5 = new controller();
$contr5->sendfind($form);
}
if ($findback2['findback2'] != null) {
require_once '../model/done.php';
$contr6 = new controller();
$contr6->compare($form);
}
if ($reset['reset'] != null) {
require_once '../model/jiami.php';
require_once '../model/done.php';
$contr7 = new controller();
$contr7->reset($form);
}
class controller
{
function check($form)
{
$model = new model();
$final = $model->done($form);
$result = new controller();
$result->show($final);
}
function insert($form)
{
$model = new model();
$final = $model->insert($form);
$result = new controller();
示例2: run_action
protected static function run_action($controller_name, $controller, $action, $action_arg, $run_filters)
{
controller::reset();
if ($run_filters) {
$have_global_filters = self::$global_filters !== null;
if ($have_global_filters) {
self::run_global_filters('before');
}
self::run_controller_filters('before', $controller_name, $action);
}
try {
if (is_callable([$controller, 'before_run'], false)) {
$controller::before_run();
}
$controller::$action($action_arg);
if (is_callable([$controller, 'after_run'], false)) {
$controller::after_run();
}
} catch (action_return $return) {
}
if ($run_filters) {
self::run_controller_filters('after', $controller_name, $action);
if ($have_global_filters) {
self::run_global_filters('after');
}
}
}