diff --git a/module/projectplan/control.php b/module/projectplan/control.php index dce2bbe8fe..298c1151d9 100644 --- a/module/projectplan/control.php +++ b/module/projectplan/control.php @@ -2,6 +2,7 @@ class projectplan extends control { /** + * 项目计划列表。 * Browse plans. * * @param int $productID @@ -15,7 +16,7 @@ class projectplan extends control * @access public * @return void */ - public function browse($productID = 0, $branch = '', $browseType = 'undone', $queryID = 0, $orderBy = 'begin_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1 ) + public function browse(int $productID = 0, string $branch = '', string $browseType = 'undone', int $queryID = 0, string $orderBy = 'begin_desc', int $recTotal = 0, int $recPerPage = 20, int $pageID = 1 ) { echo $this->fetch('productplan', 'browse', "productID=$productID&branch=$branch&browseType=$browseType&queryID=$queryID&orderBy=$orderBy&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID"); } @@ -49,6 +50,7 @@ class projectplan extends control } /** + * 查看项目计划。 * View plan. * * @param int $planID @@ -63,7 +65,7 @@ class projectplan extends control * @access public * @return void */ - public function view($planID = 0, $type = 'story', $orderBy = 'order_desc', $link = 'false', $param = '', $recTotal = 0, $recPerPage = 100, $pageID = 1) + public function view(int $planID = 0, string $type = 'story', string $orderBy = 'order_desc', string $link = 'false', string $param = '', int $recTotal = 0, int $recPerPage = 100, int $pageID = 1) { echo $this->fetch('productplan', 'view', "planID=$planID&type=$type&orderBy=$orderBy&link=$link¶m=$param&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID"); }