Jeff PHP framework  0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
privilege.controller.php
Go to the documentation of this file.
00001 <?php
00028 class privilegeController extends controller {
00029         
00033         private $_class_privilege;
00034 
00038         private $_view_privilege;
00039 
00045         function __construct() {
00046 
00047                 parent::__construct();
00048 
00049                 $this->_cpath = dirname(__FILE__);
00050                 $this->_mdl_name = "privilege";
00051 
00052                 // privileges
00053                 $this->_class_privilege = $this->_mdl_name;
00054                 $this->_view_privilege = 1;
00055         }
00056         
00062         public function manage() {
00063         
00064                 access::check($this->_class_privilege, $this->_view_privilege, array("exitOnFailure"=>true));
00065 
00066                 $at = new adminTable(TBL_SYS_PRIVILEGES, array('insertion'=>false, 'edit_deny'=>'all'));
00067 
00068                 $text = __("ManagePrivilegesExp");
00069 
00070                 $table = $at->manage();
00071 
00072                 $this->_view->setTpl('manage_table');
00073                 $this->_view->assign('text', $text);
00074                 $this->_view->assign('title', __("TableContent")." ".TBL_SYS_PRIVILEGES);
00075                 $this->_view->assign('table', $table);
00076 
00077                 return $this->_view->render();
00078         }
00079 
00080 }
00081 
00082 ?>