X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=mw%2Fapp%2Fcontrollers%2Fconfig%2Froles.php;h=f8bf27e0efd4ecf179bc86111e403d22ece26674;hb=ad9756b0b72852c82165e824570f21b039fcb359;hp=6746e6914661373de818d5505890bb86dd0a3859;hpb=422d883e3ed8ee55ee41e3b7826f32b79cea646d;p=mtweb diff --git a/mw/app/controllers/config/roles.php b/mw/app/controllers/config/roles.php index 6746e69..f8bf27e 100644 --- a/mw/app/controllers/config/roles.php +++ b/mw/app/controllers/config/roles.php @@ -2,16 +2,16 @@ class mw_config_roles extends mw_controller{ - var $roles; + public $roles; - function validate(){ + public function validate(){ $env = $this->env(); $data = $env->data(); if(($this->roles = $data->roles()) === false) return "impossible de lire la liste des roles"; return true; } - function index(){ + public function index(){ $env = $this->env(); $data = $env->data(); $roles = $this->roles; @@ -29,7 +29,7 @@ $env->set_out("actions", $actions); } - function set_default_allow(){ + public function set_default_allow(){ $env = $this->env(); $default_allow = $_GET[$env->param("id")]; if(!isset($default_allow) || ($default_allow !== "0" && $default_allow !== "1")){ @@ -47,7 +47,7 @@ ); } - function add_role(){ + public function add_role(){ $env = $this->env(); $data = $env->data(); $role = array( @@ -70,7 +70,7 @@ $env->set_out("role", $role); } - function edit_role(){ + public function edit_role(){ $env = $this->env(); $data = $env->data(); if(!isset($_GET[$env->param("id")]) || !($role = $data->get_role($_GET[$env->param("id")]))){ @@ -93,7 +93,7 @@ $env->set_out("role", $role); } - function save_role(){ + public function save_role(){ $env = $this->env(); $data = $env->data(); if(!($role = $data->get_role($_POST["id_role"]))){ @@ -130,7 +130,7 @@ ); } - function del_role(){ + public function del_role(){ $env = $this->env(); $data = $env->data(); if(!isset($_GET[$env->param("id")]) || !($role = $data->get_role($_GET[$env->param("id")]))){ @@ -153,5 +153,3 @@ } } - -?> \ No newline at end of file