* Rename checkTopStage function to isTopStage.

This commit is contained in:
jukui
2023-05-11 20:57:42 +08:00
parent e4bb5a00b3
commit 4e55a96e8b
5 changed files with 33 additions and 30 deletions
+3 -1
View File
@@ -1322,13 +1322,15 @@ class programplanModel extends model
/**
* 检查是否为顶级。
* 由checkTopStage重命名为isTopStage。
* Check whether it is the top stage.
* rname checkTopStage to isTopStage.
*
* @param int $planID
* @access public
* @return bool
*/
public function checkTopStage(int $planID): bool
public function isTopStage(int $planID): bool
{
$parentID = $this->dao->select('parent')->from(TABLE_EXECUTION)->where('id')->eq($planID)->fetch('parent');
$parentType = $this->dao->select('type')->from(TABLE_EXECUTION)->where('id')->eq($parentID)->fetch('type');