From 1d42345e07b2ef557de3c5049864e6885632b9e9 Mon Sep 17 00:00:00 2001 From: EoleDev Date: Wed, 27 Apr 2016 14:22:59 +0200 Subject: End of comments --- server/core/Image.php | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'server/core/Image.php') diff --git a/server/core/Image.php b/server/core/Image.php index d930962..b256d4c 100755 --- a/server/core/Image.php +++ b/server/core/Image.php @@ -7,8 +7,8 @@ * * @author Evan Pisani 'yogg at epsina . com' * -* @todo Complete the functions with errors detection and finish the descriptions */ + use OpenCloud\Common\Error\BadResponseError; use OpenCloud\Common\Error\BaseError; use OpenCloud\Common\Error\NotImplementedError; @@ -27,7 +27,7 @@ class image implements Core{ /** @var App $app protected, contains the main app object */ protected $app; - /** @var OpenStack\Identity $libClass protected, contains the library Identity object */ + /** @var OpenStack\Image $libClass protected, contains the library Image object */ protected $libClass; /** @@ -35,7 +35,7 @@ class image implements Core{ * * @param App $app the main app object * - * @return Image + * @return image Object */ public function __construct($app){ if(!isset($app)){ @@ -51,7 +51,7 @@ class image implements Core{ * * @param String $action name of another function of this class * - * @return NULL + * @return void */ public function action($action){ $this->{$action.""}(); @@ -62,7 +62,7 @@ class image implements Core{ * * @param array $opt Options for the image creation (name is required, others are optionals) * - * @return Image + * @return void */ private function createImage(){ $opt = $this->app->getPostParam("opt"); @@ -141,7 +141,7 @@ class image implements Core{ /** * List the images of the server * - * @return List of Image + * @return void */ private function listImage(){ try{ @@ -171,7 +171,7 @@ class image implements Core{ * * @param String $id Identifier of the image * - * @return Image + * @return void */ private function detailsImage(){ $id = $this->app->getPostParam("id"); @@ -209,7 +209,7 @@ class image implements Core{ * @param String $id id of the image * @param array $opt Options for the image creation * - * @return Image + * @return void */ private function updateImage(){ @@ -272,7 +272,7 @@ class image implements Core{ * * @param String $id Identifier of the image * - * @return NULL + * @return void */ private function deleteImage(){ $id = $this->app->getPostParam("id"); @@ -302,11 +302,11 @@ class image implements Core{ } /** - * Resactive an image + * Reactive an image * * @param String $id Identifier of the image * - * @return NULL + * @return void */ private function reactivateImage(){ $id = $this->app->getPostParam("id"); @@ -339,11 +339,11 @@ class image implements Core{ } /** - * Desactive an image + * Desactivaate an image * * @param String $id Identifier of the image * - * @return NULL + * @return void */ private function desactivateImage(){ $id = $this->app->getPostParam("id"); @@ -380,7 +380,7 @@ class image implements Core{ * @param String $id Identifier of the image * @param String $file_name Path of the image * - * @return NULL + * @return void */ private function uploadImage(){ $id = $this->app->getPostParam("id"); @@ -422,7 +422,7 @@ class image implements Core{ * * @param String $id Identifier of the image * - * @return Stream + * @return void */ private function downloadImage(){ $id = $this->app->getPostParam("id"); @@ -459,7 +459,7 @@ class image implements Core{ * @param String $image_id Identifier of the image * @param String $member_id Identifier of the member * - * @return Member + * @return void */ private function addMemberImage(){ $image_id = $this->app->getPostParam("image_id"); @@ -501,7 +501,7 @@ class image implements Core{ * * @param String $image_id identifier of the image * - * @return List of Member + * @return void */ private function listMemberImage(){ $image_id = $this->app->getPostParam("image_id"); @@ -545,7 +545,7 @@ class image implements Core{ * @param String $image_id Identifier of the image * @param String $member_id Identifier of the member * - * @return Member + * @return void */ private function detailMemberImage(){ $image_id = $this->app->getPostParam("image_id"); @@ -591,7 +591,7 @@ class image implements Core{ * @param String $image_id Identifier of the image * @param String $member_id Identifier of the member * - * @return NULL + * @return void */ private function removeMemberImage(){ $image_id = $this->app->getPostParam("image_id"); @@ -637,7 +637,7 @@ class image implements Core{ * @param String $member_id Identifier of the member * @param String $status New status for the member * - * @return NULL + * @return void **/ private function updateMemberImage(){ $image_id = $this->app->getPostParam("image_id"); -- cgit v1.2.3