* Delete the nonuse code.

This commit is contained in:
hufangzhou
2021-01-29 16:52:00 +08:00
parent 86bf33415e
commit 8fe650c9bf
-32
View File
@@ -27,38 +27,6 @@ class projectStory extends control
if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "fromModule=projectstory")));
}
/**
* Obtain user requirements through product.
*
* @param int $productID
* @param string $browseType
* @param int $param
* @param string $storyType
* @param string $orderBy
* @param int $recTotal
* @param int $recPerPage
* @param int $pageID
* @access public
* @return void
*/
public function requirement($productID = 0, $branch = '', $browseType = '', $param = 0, $storyType = 'requirement', $orderBy = '', $recTotal = 0, $recPerPage = 20, $pageID = 1)
{
$this->session->set('storyList', $this->app->getURI(true));
if(empty($productID)) $productID = key($this->products);
$this->lang->menugroup->product = 'projectstory';
$this->lang->projectstory->menu->requirement['subModule'] = 'product';
$this->projectstory->setMenu($this->products, $productID, $branch);
$this->loadModel('story')->replaceURLang('requirement');
$this->lang->story->title = str_replace($this->lang->URCommon, $this->lang->URCommon, $this->lang->story->title);
$this->lang->story->createRequirement = str_replace($this->lang->URCommon, $this->lang->URCommon, $this->lang->story->createRequirement);
$this->lang->story->createStory = str_replace($this->lang->URCommon, $this->lang->URCommon, $this->lang->story->createStory);
$this->lang->story->noStory = str_replace($this->lang->URCommon, $this->lang->URCommon, $this->lang->story->noStory);
echo $this->fetch('product', 'browse', "productID=$productID&branch=$branch&browseType=$browseType&param=$param&storyType=$storyType&orderBy=$orderBy&recTotal=$recTotal&recPerPage=$recPerPage&pageID=$pageID");
}
/**
* Get software requirements from product.
*