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