X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=app%2Fcontrollers%2Fusers%2Falbums.php;h=97db03f10c9215d5744d27f74dd934a49e3d1372;hb=HEAD;hp=5a2dd5dc89381407ba9e1f4d11882cf7b1d8fdf3;hpb=b2437852f60b76e437950c0458149d92686ee38b;p=mw_sourceml diff --git a/app/controllers/users/albums.php b/app/controllers/users/albums.php index 5a2dd5d..97db03f 100644 --- a/app/controllers/users/albums.php +++ b/app/controllers/users/albums.php @@ -2,12 +2,11 @@ class mw_users_albums extends mw_controller{ - var $user; + public $user; + public $status; + public $album_status_id; - var $status; - var $album_status_id; - - function validate(){ + public function validate(){ $env = $this->env(); $data = $env->data(); if(($this->status = $data->source_status()) === false){ @@ -28,7 +27,7 @@ return true; } - function index(){ + public function index(){ $env = $this->env(); $data = $env->data(); if(($groupes = $data->groupes($this->user["id"])) === false){ @@ -77,7 +76,7 @@ $env->set_out("albums", $albums); } - function add(){ + public function add(){ $env = $this->env(); $data = $env->data(); $album = $data->empty_source(); @@ -150,7 +149,7 @@ return; } $env->redirect( - $env->url("users/albums"), + $env->url("users/albums/edit", array("id" => $id_source)), "l'album a été ajouté" ); } @@ -162,7 +161,7 @@ $env->set_out("groupe", $groupe); } - function edit(){ + public function edit(){ $env = $this->env(); $data = $env->data(); if(($groupes = $data->groupes($this->user["id"])) === false){ @@ -272,7 +271,7 @@ $env->set_out("album", $album); } - function del(){ + public function del(){ $env = $this->env(); $data = $env->data(); if(!($album = $data->source($_GET[$env->param("id")], true))){ @@ -294,7 +293,7 @@ ); } - function groupes(){ + public function groupes(){ $env = $this->env(); if( !($sources_invitations_controller = $env->get_controller("users/sources_invitations")) @@ -307,5 +306,3 @@ } } - -?> \ No newline at end of file