* complete task #207
 + complete task #207
This commit is contained in:
fujia
2010-05-28 09:30:25 +00:00
parent ed45dfdbfa
commit c18ebfddc9
3 changed files with 51 additions and 6 deletions
+7 -3
View File
@@ -29,8 +29,11 @@ class project extends control
public function __construct()
{
parent::__construct();
$this->projects = $this->project->getPairs();
if(!$this->projects and $this->methodName != 'create') $this->locate($this->createLink('project', 'create'));
if($this->methodName != 'computeburn')
{
$this->projects = $this->project->getPairs();
if(!$this->projects and $this->methodName != 'create') $this->locate($this->createLink('project', 'create'));
}
}
/* 项目视图首页,*/
@@ -320,7 +323,8 @@ class project extends control
/* 计算燃烧图数据。*/
public function computeBurn()
{
$this->project->computeBurn();
$this->view->burns = $this->project->computeBurn();
$this->display();
}
/* 团队成员。*/