* Rename extension to hooks.

This commit is contained in:
liugang
2019-07-22 17:07:51 +08:00
parent c8958a5581
commit 0d413b3f65
12 changed files with 66 additions and 66 deletions
+7 -7
View File
@@ -106,7 +106,7 @@ class testtask extends control
if(dao::isError()) die(js::error(dao::getError()));
$this->loadModel('action')->create('testtask', $taskID, 'opened');
if(isset($this->config->bizVersion)) $this->executeExtension($this->methodName, $taskID);
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $taskID);
die(js::locate($this->createLink('testtask', 'browse', "productID=$productID"), 'parent'));
}
@@ -462,7 +462,7 @@ class testtask extends control
$this->action->logHistory($actionID, $changes);
}
if(isset($this->config->bizVersion)) $this->executeExtension($this->methodName, $taskID);
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $taskID);
die(js::locate(inlink('view', "taskID=$taskID"), 'parent'));
}
@@ -510,7 +510,7 @@ class testtask extends control
$this->action->logHistory($actionID, $changes);
}
if(isset($this->config->bizVersion)) $this->executeExtension($this->methodName, $taskID);
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $taskID);
if(isonlybody()) $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'parent'));
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('testtask', 'view', "taskID=$taskID")));
@@ -553,7 +553,7 @@ class testtask extends control
$this->action->logHistory($actionID, $changes);
}
if(isset($this->config->bizVersion)) $this->executeExtension($this->methodName, $taskID);
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $taskID);
if(isonlybody()) $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'parent'));
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('testtask', 'view', "taskID=$taskID")));
@@ -596,7 +596,7 @@ class testtask extends control
$this->action->logHistory($actionID, $changes);
}
if(isset($this->config->bizVersion)) $this->executeExtension($this->methodName, $taskID);
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $taskID);
if(isonlybody()) $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'parent'));
$this->send(array('result' => 'success', 'message' => $this->lang->success, 'locate' => $this->createLink('testtask', 'view', "taskID=$taskID")));
@@ -641,7 +641,7 @@ class testtask extends control
$this->action->logHistory($actionID, $changes);
}
if(isset($this->config->bizVersion)) $this->executeExtension($this->methodName, $taskID);
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $taskID);
if(isonlybody()) $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'parent'));
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $this->createLink('testtask', 'view', "taskID=$taskID")));
@@ -681,7 +681,7 @@ class testtask extends control
$task = $this->testtask->getByID($taskID);
$this->testtask->delete(TABLE_TESTTASK, $taskID);
if(isset($this->config->bizVersion)) $this->executeExtension($this->methodName, $taskID);
if(isset($this->config->bizVersion)) $this->executeHooks($this->methodName, $taskID);
/* if ajax request, send result. */
if($this->server->ajax)