Permalink
Browse files

Add AgileZen params in resources

  • Loading branch information...
ezimuel authored and weierophinney committed Feb 8, 2012
1 parent e34170a commit 87f1bf7236cb98511952db2593bf1ca578df9e39
@@ -135,10 +135,11 @@ public function getProjectId()
/**
* Get stories
*
+ * @param array $params
* @return \Zend\Service\AgileZen\Container
*/
- public function getStories()
+ public function getStories($params=array())
{
- return $this->service->getStoriesPhase($this->projectId, $this->id);
+ return $this->service->getStoriesPhase($this->projectId, $this->id, $params);
}
}
@@ -167,46 +167,50 @@ public function removeMember($member)
/**
* Get the phases of the project
*
+ * @param array $params
* @return \Zend\Service\AgileZen\Container
*/
- public function getPhases()
+ public function getPhases($params=array())
{
- return $this->service->getPhases($this->id);
+ return $this->service->getPhases($this->id, $params);
}
/**
* Get the stories of the project
*
+ * @param array $params
* @return \Zend\Service\AgileZen\Container
*/
- public function getStories()
+ public function getStories($params=array())
{
- return $this->service->getStories($this->id);
+ return $this->service->getStories($this->id, $params);
}
/**
* Get a specific phase of the project
*
* @param string $id
+ * @param array $params
* @return Phase
*/
- public function getPhase($id)
+ public function getPhase($id, $params=array())
{
if (!empty($id)) {
- return $this->service->getPhase($this->id, $id);
+ return $this->service->getPhase($this->id, $id, $params);
}
}
/**
* Get a specific story of the project
*
* @param string $id
+ * @param array $params
* @return Phase
*/
- public function getStory($id)
+ public function getStory($id, $params=array())
{
if (!empty($id)) {
- return $this->service->getStory($this->id, $id);
+ return $this->service->getStory($this->id, $id, $params);
}
}
@@ -252,11 +252,12 @@ public function getProject()
/**
* Get the phase
*
+ * @param array $params
* @return Phase
*/
- public function getPhase()
+ public function getPhase($params=array())
{
- return $this->service->getPhase($this->projectId, $this->phaseId);
+ return $this->service->getPhase($this->projectId, $this->phaseId, $params);
}
/**
@@ -282,11 +283,12 @@ public function getOwner()
/**
* Get the tasks
*
+ * @param array $params
* @return \Zend\Service\AgileZen\Container
*/
- public function getTasks()
+ public function getTasks($params=array())
{
- return $this->service->getTasks($this->projectId, $this->id);
+ return $this->service->getTasks($this->projectId, $this->id, $params);
}
/**

0 comments on commit 87f1bf7

Please sign in to comment.