From 03c874f9bb31b58c26d97bce5f2f6fe8f1a14eeb Mon Sep 17 00:00:00 2001 From: halukakin Date: Sun, 13 May 2012 03:08:37 +0300 Subject: [PATCH] packages() function added --- liquidplanner.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/liquidplanner.php b/liquidplanner.php index 19f5e15..3997d34 100755 --- a/liquidplanner.php +++ b/liquidplanner.php @@ -296,6 +296,25 @@ public function projects($projectid=NULL) return($response); } + + + /** + * Retrieves the specified package or a list of packages + * + * @param int $packageid ID of package + * + * @return array Response from Liquid Planner + * + * @access public + */ + public function packages($packageid=NULL) + { + $url = $this->serviceurl.'/packages'.($packageid ? '/'.$packageid : ''); + $response = $this->lp_get($url); + return($response); + } + + /** * Retrieves the specified activity or a list of activities *