Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages | Examples

SC_alt_menu Class Reference

List of all members.

Public Member Functions

 init ()
 Initialize Loads the backend modules available for the logged in user.
 main ()
 Main content generated.
 printContent ()
 Outputting the accumulated content to screen.

Public Attributes

 $_clearCacheFiles

Member Function Documentation

SC_alt_menu::init  ) 
 

Initialize Loads the backend modules available for the logged in user.

Returns:
void

Definition at line 89 of file alt_menu.php.

00089                      {
00090       global $TBE_MODULES;
00091 
00092          // Setting GPvars:
00093       $this->_clearCacheFiles = t3lib_div::_GP('_clearCacheFiles');
00094 
00095          // Loads the backend modules available for the logged in user.
00096       $this->loadModules = t3lib_div::makeInstance('t3lib_loadModules');
00097       $this->loadModules->load($TBE_MODULES);
00098    }

SC_alt_menu::main  ) 
 

Main content generated.

Returns:
void

Definition at line 105 of file alt_menu.php.

References $TBE_TEMPLATE, t3lib_BEfunc::cshItem(), menu(), and table().

00105                      {
00106       global $BE_USER,$TYPO3_CONF_VARS,$TBE_TEMPLATE;
00107 
00108       $TBE_TEMPLATE->docType='xhtml_trans';
00109       $TBE_TEMPLATE->divClass='vertical-menu';
00110       $this->content.=$TBE_TEMPLATE->startPage('Vertical Backend Menu');
00111       $backPath = $GLOBALS['BACK_PATH'];
00112 
00113          // Printing the menu
00114       $alt_menuObj = t3lib_div::makeInstance('alt_menu_functions');
00115       $this->content.= $alt_menuObj->topMenu($this->loadModules->modules);
00116       $this->content.= t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'menu_modules', $GLOBALS['BACK_PATH']);
00117 
00118          // clear cache commands for Admins
00119       if($BE_USER->isAdmin()) {
00120          $functionsArray = $alt_menuObj->adminFunctions($backPath);
00121 
00122          $this->content.='
00123 
00124 <!--
00125   Menu with admin functions: Clearing cache:
00126 -->
00127 <div id="typo3-alt-menu-php-adminFunc">';
00128 
00129             // Header: Admin functions
00130          $this->content.=
00131             '<h2 class="bgColor5">'.
00132             $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:rm.adminFunctions',1).
00133             '</h2>';
00134 
00135             // Table with those admin functions
00136          $this->content.='
00137             <table border="0" cellpadding="0" cellspacing="1" width="100%">';
00138 
00139          $rows=array();
00140          foreach($functionsArray as $functionsArraySetup)   {
00141             $rows[]='
00142                <tr>
00143                   <td valign="top" align="center">'.$functionsArraySetup['icon'].'</td>
00144                   <td><a href="'.htmlspecialchars($functionsArraySetup['href']).'">'.htmlspecialchars($functionsArraySetup['title']).'</a></td>
00145                </tr>';
00146          }
00147 
00148             // Imploding around the divider table row:
00149          $this->content.=implode('
00150                <tr>
00151                   <td colspan="2"><img'.t3lib_iconWorks::skinImg($backPath,'gfx/altmenuline.gif','width="105" height="3"').' alt="" /></td>
00152                </tr>',$rows);
00153 
00154          $this->content.='
00155             </table>';
00156          $this->content.=t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'menu_adminFunction', $GLOBALS['BACK_PATH']);
00157          $this->content.='
00158 </div>
00159 ';
00160       }
00161 
00162          // Printing bottons (logout button)
00163       $this->content.='
00164 
00165 
00166 <!--
00167   Logout button / username
00168 -->
00169 <div id="typo3-alt-menu-php-logininfo">'.$alt_menuObj->topButtons().
00170                   '<p id="username">['.htmlspecialchars($BE_USER->user['username']).']</p>
00171 </div>';
00172 
00173          // End page:
00174       $this->content.=$TBE_TEMPLATE->endPage();
00175    }

SC_alt_menu::printContent  ) 
 

Outputting the accumulated content to screen.

Returns:
void

Definition at line 182 of file alt_menu.php.

00182                            {
00183       echo $this->content;
00184    }


Member Data Documentation

SC_alt_menu::$_clearCacheFiles
 

Definition at line 81 of file alt_menu.php.


The documentation for this class was generated from the following file:
Generated on Sun Oct 3 01:06:28 2004 for TYPO3core 3.7.0 dev by  doxygen 1.3.8-20040913