本文整理匯總了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));
}