74 lines
2.2 KiB
PHP
74 lines
2.2 KiB
PHP
<?php
|
|
declare(strict_types=1);
|
|
class projectplan extends control
|
|
{
|
|
/**
|
|
* 项目计划列表。
|
|
* Browse plans.
|
|
*
|
|
* @param int $productID
|
|
* @param int $branch
|
|
* @param string $browseType
|
|
* @param int $queryID
|
|
* @param string $orderBy
|
|
* @param int $recTotal
|
|
* @param int $recPerPage
|
|
* @param int $pageID
|
|
* @access public
|
|
* @return void
|
|
*/
|
|
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");
|
|
}
|
|
|
|
/**
|
|
* 创建一个计划。
|
|
* Create a plan.
|
|
*
|
|
* @param int $productID
|
|
* @param int $branchID
|
|
* @param int $parent
|
|
* @access public
|
|
* @return void
|
|
*/
|
|
public function create(int $productID = 0, int $branchID = 0, int $parent = 0)
|
|
{
|
|
echo $this->fetch('productplan', 'create', "productID=$productID&branchID=$branchID&parent=$parent");
|
|
}
|
|
|
|
/**
|
|
* 编辑一个计划。
|
|
* Edit a plan.
|
|
*
|
|
* @param int $planID
|
|
* @access public
|
|
* @return void
|
|
*/
|
|
public function edit(int $planID)
|
|
{
|
|
echo $this->fetch('productplan', 'edit', "planID={$planID}");
|
|
}
|
|
|
|
/**
|
|
* 查看项目计划。
|
|
* View plan.
|
|
*
|
|
* @param int $planID
|
|
* @param string $type
|
|
* @param string $orderBy
|
|
* @param string $link
|
|
* @param string $param
|
|
* @param int $recTotal
|
|
* @param int $recPerPage
|
|
* @param int $pageID
|
|
*
|
|
* @access public
|
|
* @return void
|
|
*/
|
|
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");
|
|
}
|
|
}
|