function validate_per_module_for_group($id_group) { $this->inicializar_base_datos(); $per = false; $this->per = 0; $num = 0; // $result = $this->validate_per_group_module ($id_group, $this->id_module); $result = $_SESSION['permisos_group_modules'][$id_group][$this->id_module]; if ($result == true) { $per = true; $this->per = 1; } $modules = new modules(); $this->num_methods = $modules->get_list_module_methods($this->id_module); for ($metodo_num = 0; $metodo_num < $this->num_methods; $metodo_num++) { //Como se tiene el numero de metodos de este modulo, entonces se puede ver nombre e identificador en $this->per_methods[$metodo_num]->name //As� ser� mas f�cil recorrer la matriz, y no hay problemas de pasar un hash a smarty ya que no los acepta $this->per_methods[$metodo_num] = new permissions_methods(); $this->per_methods[$metodo_num]->id_method = $modules->module_methods[$metodo_num]['id_method']; $this->per_methods[$metodo_num]->method_name = $modules->module_methods[$metodo_num]['name']; $this->per_methods[$metodo_num]->method_name_web = $modules->module_methods[$metodo_num]['name_web']; if ($per == true) { $this->per_methods[$metodo_num]->validate_per_method_for_group($id_group, $this->per_methods[$metodo_num]->id_method); } else { $this->per_methods[$metodo_num]->per = 0; //print "NO MOdulo: metodo ".$this->method_name." permisos ".$this->per."............"; } } }