X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=mw%2Fapp%2Fcontrollers%2Fusers%2Fcompte.php;h=bfebe6a83ab8715620ecd19c642176f972c01a56;hb=ad9756b0b72852c82165e824570f21b039fcb359;hp=c05a1a0dbffc1289f8b3605c37ae8edf0c16ab11;hpb=422d883e3ed8ee55ee41e3b7826f32b79cea646d;p=mtweb diff --git a/mw/app/controllers/users/compte.php b/mw/app/controllers/users/compte.php index c05a1a0..bfebe6a 100644 --- a/mw/app/controllers/users/compte.php +++ b/mw/app/controllers/users/compte.php @@ -2,32 +2,31 @@ class mw_users_compte extends mw_controller{ - var $roles; - var $user; + public $roles; + public $user; + public $validation_result; - var $validation_result; - - function validate(){ + public function validate(){ $this->validation_result = true; if($this->validation_result === true) $this->validate_roles(); if($this->validation_result === true) $this->validate_user(); return $this->validation_result; } - function validate_roles(){ + public function validate_roles(){ $env = $this->env(); $data = $env->data(); if(($this->roles = $data->roles()) !== false) $this->validation_result = true; else $this->validation_result = "impossible de lire la liste des roles"; } - function validate_user(){ + public function validate_user(){ $env = $this->env(); if($this->user = $env->user()) $this->validation_result = true; else $this->validation_result = "Vous devez être identifier pour accéder à cette page"; } - function index(){ + public function index(){ $env = $this->env(); if($this->validation_result === true){ $env->run("users/infos"); @@ -35,5 +34,3 @@ } } - -?> \ No newline at end of file