+ add tasks() method.

This commit is contained in:
wangchunsheng
2009-11-27 06:32:54 +00:00
parent ff99fbac17
commit 42dc038c2d
2 changed files with 15 additions and 0 deletions

View File

@@ -143,6 +143,15 @@ class story extends control
}
}
/* 需求的任务列表。*/
public function tasks($storyID, $projectID = 0)
{
$this->loadModel('task');
$tasks = $this->task->getStoryTaskPairs($storyID, $projectID);
$this->assign('tasks', $tasks);
$this->display();
}
/* Ajax: 获取某一个项目的需求列表。*/
public function ajaxGetProjectStories($projectID, $productID = 0, $storyID = 0)
{

View File

@@ -0,0 +1,6 @@
<?php
foreach($tasks as $task)
{
echo $task . "<br />";
}
?>