Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add AgileZen params in resources

  • Loading branch information...
commit 87f1bf7236cb98511952db2593bf1ca578df9e39 1 parent e34170a
@ezimuel ezimuel authored weierophinney committed
View
5 library/Zend/Service/AgileZen/Resources/Phase.php
@@ -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);
}
}
View
20 library/Zend/Service/AgileZen/Resources/Project.php
@@ -167,33 +167,36 @@ 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);
}
}
@@ -201,12 +204,13 @@ public function getPhase($id)
* 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);
}
}
View
10 library/Zend/Service/AgileZen/Resources/Story.php
@@ -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);
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.