Source for file mainScreen.php
Documentation is available at mainScreen.php
* <b>Class Description</b>: This is the parent class for every controller that is connected to a main application
* window, displaying the Main System Menu and Application Name on top
* @author Jan van der Breggen
* @subpackage ParentClasses
* we can't implement a standard constructor as the constructor will be automatically
* called at object creation time, which for controllers is during execution of the
* framework core code, at which time no parameters will be passed in which could have
* @param unknown_type $header
* @param unknown_type $text
* @param array $displayMenu containing names of menue items that must be disabled.
* @param unknown_type $disabledMenuItems
function _init($header= '', $text= '', $displayMenu = true, $disabledMenuItems = '')
$dbase = new model_students();
if (!empty($disabledMenuItems)){
foreach($disabledMenuItems as $item)
if (!isset ($_SESSION['rvtwo']['selected_student']))
$menu['main_booking']= '';
$this->View['text'] = $text;
$this->View['header'] = $header;
$this->View['URL_DOC'] = URL_DOC;
|