本文整理汇总了PHP中event::remove方法的典型用法代码示例。如果您正苦于以下问题:PHP event::remove方法的具体用法?PHP event::remove怎么用?PHP event::remove使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类event
的用法示例。
在下文中一共展示了event::remove方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: action
function action()
{
$RootDir = $_SERVER["DOCUMENT_ROOT"] . '/openqrm/base/';
$identifiers = $this->response->html->request()->get($this->identifier_name);
$msg = '';
if ($identifiers !== '') {
foreach ($identifiers as $id) {
$event = new event();
$event->get_instance_by_id($id);
if (strstr($event->description, "ERROR running token")) {
$error_token = str_replace("ERROR running token ", "", $event->description);
$cmd_file = $RootDir . "/server/event/errors/" . $error_token . ".cmd";
$error_file = $RootDir . "/server/event/errors/" . $error_token . ".out";
if ($this->file->exists($cmd_file)) {
$error = $this->file->remove($cmd_file);
if ($error !== '') {
$msg .= $error . '<br>';
}
}
if ($this->file->exists($error_file)) {
$error = $this->file->remove($error_file);
if ($error !== '') {
$msg .= $error . '<br>';
}
}
}
$event->remove($id);
$msg .= sprintf($this->lang['msg'], $id) . '<br>';
}
}
$this->response->redirect($this->response->get_url($this->actions_name, 'select', $this->message_param, $msg));
}