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

SC_mod_web_func_index Class Reference

Inherits t3lib_SCbase.

List of all members.

Public Member Functions

 main ()
 Initialize module header etc and call extObjContent function.
 printContent ()
 Print module content (from $this->content).

Public Attributes

 $pageinfo
 $fileProcessor


Member Function Documentation

SC_mod_web_func_index::main  ) 
 

Initialize module header etc and call extObjContent function.

Returns:
void

Definition at line 84 of file index.php.

References $LANG, t3lib_BEfunc::cshItem(), t3lib_SCbase::extObjContent(), and t3lib_BEfunc::readPageAccess().

00084                      {
00085       global $BE_USER,$LANG,$BACK_PATH;
00086 
00087       // Access check...
00088       // The page will show only if there is a valid page and if this page may be viewed by the user
00089       $this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this->perms_clause);
00090       $access = is_array($this->pageinfo) ? 1 : 0;
00091 
00092 
00093       // **************************
00094       // Main
00095       // **************************
00096       if ($this->id && $access)  {
00097          $this->doc = t3lib_div::makeInstance('mediumDoc');
00098          $this->doc->backPath = $BACK_PATH;
00099          $this->doc->docType = 'xhtml_trans';
00100 
00101             // JavaScript
00102          $this->doc->JScode = $this->doc->wrapScriptTags('
00103             script_ended = 0;
00104             function jumpToUrl(URL) {  //
00105                document.location = URL;
00106             }
00107          ');
00108          $this->doc->postCode=$this->doc->wrapScriptTags('
00109             script_ended = 1;
00110             if (top.fsMod) top.fsMod.recentIds["web"] = '.intval($this->id).';
00111          ');
00112 
00113 
00114             // Setting up the context sensitive menu:
00115          $CMparts=$this->doc->getContextMenuCode();
00116          $this->doc->bodyTagAdditions = $CMparts[1];
00117          $this->doc->JScode.=$CMparts[0];
00118          $this->doc->postCode.= $CMparts[2];
00119 
00120          $this->doc->form='<form action="index.php" method="post"><input type="hidden" name="id" value="'.$this->id.'" />';
00121 
00122          $headerSection = $this->doc->getHeader('pages',$this->pageinfo,$this->pageinfo['_thePath']).'<br />'.
00123             $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.path').': '.
00124             '<span title="'.htmlspecialchars($this->pageinfo['_thePathFull']).'">'.htmlspecialchars(t3lib_div::fixed_lgd_cs($this->pageinfo['_thePath'],-50)).'</span>';
00125 
00126             // Draw the header.
00127          $this->content.=$this->doc->startPage($LANG->getLL('title'));
00128          $this->content.=$this->doc->header($LANG->getLL('title'));
00129          $this->content.=$this->doc->spacer(5);
00130          $this->content.=$this->doc->section('',$this->doc->funcMenu($headerSection,t3lib_BEfunc::getFuncMenu($this->id,'SET[function]',$this->MOD_SETTINGS['function'],$this->MOD_MENU['function'])));
00131          $this->content.=$this->doc->divider(5);
00132 
00133 
00134          $vContent = $this->doc->getVersionSelector($this->id,1);
00135          if ($vContent) {
00136             $this->content.=$this->doc->section('',$vContent);
00137          }
00138 
00139 
00140          $this->extObjContent();
00141 
00142 
00143 
00144             // Function Module CSH:
00145          $this->content.= t3lib_BEfunc::cshItem('_MOD_web_func', '', $GLOBALS['BACK_PATH'],'<br/><br/>|', FALSE, 'margin-top: 30px;');
00146 
00147             // ShortCut
00148          if ($BE_USER->mayMakeShortcut()) {
00149             $this->content.=$this->doc->spacer(20).$this->doc->section('',$this->doc->makeShortcutIcon('id','function,wiz,import_function,export_function',$this->MCONF['name']));
00150          }
00151 
00152          $this->content.=$this->doc->spacer(10);
00153       } else {
00154             // If no access or if ID == zero
00155 
00156          $this->doc = t3lib_div::makeInstance('mediumDoc');
00157          $this->doc->backPath = $BACK_PATH;
00158 
00159          $this->content.=$this->doc->startPage($LANG->getLL('title'));
00160          $this->content.=$this->doc->header($LANG->getLL('title'));
00161          $this->content.=$this->doc->section('','<br />'.$LANG->getLL('clickAPage_content'),0,1);
00162          $this->content.=$this->doc->spacer(5);
00163          $this->content.=$this->doc->spacer(10);
00164       }
00165    }

SC_mod_web_func_index::printContent  ) 
 

Print module content (from $this->content).

Returns:
void

Definition at line 172 of file index.php.

00172                            {
00173 
00174       $this->content.=$this->doc->endPage();
00175       echo $this->content;
00176    }


Member Data Documentation

SC_mod_web_func_index::$fileProcessor
 

Definition at line 75 of file index.php.

SC_mod_web_func_index::$pageinfo
 

Definition at line 74 of file index.php.


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