* Action module built-in hook function.

This commit is contained in:
leiyong
2023-08-17 05:34:33 +00:00
parent 0fed7fb36c
commit e9061c50d5
+10
View File
@@ -90,6 +90,9 @@ class actionModel extends model
/* Add index for global search. */
$this->saveIndex($objectType, $objectID, $actionType);
$changeFunc = 'after' . ucfirst($objectType);
if(method_exists($this, $changeFunc)) call_user_func_array(array($this, $changeFunc), array($action, $actionID));
return $actionID;
}
@@ -907,6 +910,13 @@ class actionModel extends model
}
$this->dao->insert(TABLE_HISTORY)->data($change)->exec();
}
if(isset($this->session->calllbackActionList[$actionID]))
{
$callbackMethod = $this->session->calllbackActionList[$actionID];
unset($this->session->calllbackActionList[$actionID]);
if(method_exists($this, $callbackMethod)) call_user_func_array(array($this, $callbackMethod), array($actionID));
}
}
/**