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

tslib_gmenu Class Reference

Inherits tslib_menu.

Inherited by tslib_gmenu_foldout, and tslib_gmenu_layers.

List of all members.

Public Member Functions

 generate ()
 Calls procesItemStates() so that the common configuration for the menu items are resolved into individual configuration per item.
 makeGifs ($conf, $resKey)
 Will traverse input array with configuratoin per-item and create corresponding GIF files for the menu.
 findLargestDims ($conf, $items, $Hobjs, $Wobjs, $minDim, $maxDim)
 Function searching for the largest width and height of the menu items to be generated.
 writeMenu ()
 Traverses the ->result['NO'] array of menu items configuration (made by ->generate()) and renders the HTML of each item (the images themselves was made with makeGifs() before this.
 extProc_init ()
 Called right before the traversing of $this->result begins.
 extProc_RO ($key)
 Called after all processing for RollOver of an element has been done.
 extProc_beforeLinking ($key)
 Called right before the creation of the link for the menu item.
 extProc_afterLinking ($key)
 Called right after the creation of links for the menu item.
 extProc_beforeAllWrap ($item, $key)
 Called before the "wrap" happens on the menu item.
 extProc_finish ()
 Called before the writeMenu() function returns (only if a menu was generated).


Member Function Documentation

tslib_gmenu::extProc_afterLinking key  ) 
 

Called right after the creation of links for the menu item.

This is also the last function call before the for-loop traversing menu items goes to the next item. This function MUST set $this->WMresult.=[HTML for menu item] to add the generated menu item to the internal accumulation of items. Further this calls the subMenu function in the parent class to create any submenu there might be.

Parameters:
integer Pointer to $this->menuArr[$key] where the current menu element record is found
Returns:
void private
See also:
writeMenu(), tslib_gmenu_layers::extProc_afterLinking(), tslib_menu::subMenu()

Reimplemented in tslib_gmenu_foldout, and tslib_gmenu_layers.

Definition at line 2208 of file class.tslib_menu.php.

References spacer().

02208                                        {
02209       $this->WMresult.=$this->I['theItem'];
02210       if (!$this->I['spacer'])   {
02211          $this->WMresult.= $this->subMenu($this->I['uid']);
02212       }
02213    }

tslib_gmenu::extProc_beforeAllWrap item,
key
 

Called before the "wrap" happens on the menu item.

Parameters:
string The current content of the menu item, $this->I['theItem'], passed along.
integer Pointer to $this->menuArr[$key] where the current menu element record is found
Returns:
string The modified version of $item, going back into $this->I['theItem'] private
See also:
writeMenu(), tslib_gmenu_layers::extProc_beforeAllWrap()

Reimplemented in tslib_gmenu_layers.

Definition at line 2225 of file class.tslib_menu.php.

02225                                                 {
02226       return $item;
02227    }

tslib_gmenu::extProc_beforeLinking key  ) 
 

Called right before the creation of the link for the menu item.

Parameters:
integer Pointer to $this->menuArr[$key] where the current menu element record is found
Returns:
void private
See also:
writeMenu(), tslib_gmenu_layers::extProc_beforeLinking()

Reimplemented in tslib_gmenu_foldout, and tslib_gmenu_layers.

Definition at line 2195 of file class.tslib_menu.php.

02195                                           {
02196    }

tslib_gmenu::extProc_finish  ) 
 

Called before the writeMenu() function returns (only if a menu was generated).

Returns:
string The total menu content should be returned by this function private
See also:
writeMenu(), tslib_gmenu_layers::extProc_finish()

Reimplemented in tslib_gmenu_layers.

Definition at line 2236 of file class.tslib_menu.php.

02236                               {
02237       return $this->tmpl->wrap($this->WMresult,$this->mconf['wrap']).$this->WMextraScript;
02238    }

tslib_gmenu::extProc_init  ) 
 

Called right before the traversing of $this->result begins.

Can be used for various initialization

Returns:
void private
See also:
writeMenu(), tslib_gmenu_layers::extProc_init()

Reimplemented in tslib_gmenu_foldout, and tslib_gmenu_layers.

Definition at line 2173 of file class.tslib_menu.php.

02173                            {
02174    }

tslib_gmenu::extProc_RO key  ) 
 

Called after all processing for RollOver of an element has been done.

Parameters:
integer Pointer to $this->menuArr[$key] where the current menu element record is found OR $this->result['RO'][$key] where the configuration for that elements RO version is found!
Returns:
void private
See also:
writeMenu(), tslib_gmenu_layers::extProc_RO()

Reimplemented in tslib_gmenu_layers.

Definition at line 2184 of file class.tslib_menu.php.

02184                               {
02185    }

tslib_gmenu::findLargestDims conf,
items,
Hobjs,
Wobjs,
minDim,
maxDim
 

Function searching for the largest width and height of the menu items to be generated.

Uses some of the same code as makeGifs and even instantiates some gifbuilder objects BUT does not render the images - only reading out which width they would have. Remember to upgrade the code in here if the makeGifs function is updated.

Parameters:
array Same configuration array as passed to makeGifs()
integer The number of menu items
array Array with "applyTotalH" numbers
array Array with "applyTotalW" numbers
array Array with "min" x/y
array Array with "max" x/y
Returns:
array Array with keys "H" and "W" which are in themselves arrays with the heights and widths of menu items inside. This can be used to find the max/min size of the menu items. private
See also:
makeGifs()

Definition at line 1984 of file class.tslib_menu.php.

01984                                                                         {
01985       $totalWH = array(
01986          'W' => array(),
01987          'H' => array(),
01988          'W_total' => 0,
01989          'H_total' => 0
01990       );
01991 
01992       $Hcounter = 0;
01993       $Wcounter = 0;
01994       $c=0;
01995       $maxFlag=0;
01996       reset($conf);
01997       while (list($key,$val)=each($conf)) {
01998          // SAME CODE AS makeGifs()! BEGIN
01999          if ($items==($c+1) && $minDim)   {
02000             $Lobjs = $this->mconf['removeObjectsOfDummy'];
02001             if ($Lobjs) {
02002                $Lobjs = t3lib_div::intExplode(',',$Lobjs);
02003                reset($Lobjs);
02004                while(list(,$remItem)=each($Lobjs)) {
02005                   unset($val[$remItem]);
02006                   unset($val[$remItem.'.']);
02007                }
02008             }
02009 
02010             $flag =0;
02011             $tempXY = explode(',',$val['XY']);
02012             if ($Wcounter<$minDim[0])  {$tempXY[0]=$minDim[0]-$Wcounter; $flag=1;}
02013             if ($Hcounter<$minDim[1])  {$tempXY[1]=$minDim[1]-$Hcounter; $flag=1;}
02014             $val['XY'] = implode(',',$tempXY);
02015             if (!$flag){break;}
02016          }
02017          $c++;
02018 
02019          $gifCreator = t3lib_div::makeInstance('tslib_gifBuilder');
02020          $gifCreator->init();
02021          $gifCreator->start($val,$this->menuArr[$key]);
02022          if ($maxDim)   {
02023             $tempXY = explode(',',$val['XY']);
02024             if ($maxDim[0] && $Wcounter+$gifCreator->XY[0]>=$maxDim[0]) {$tempXY[0]==$maxDim[0]-$Wcounter; $maxFlag=1;}
02025             if ($maxDim[1] && $Hcounter+$gifCreator->XY[1]>=$maxDim[1]) {$tempXY[1]=$maxDim[1]-$Hcounter; $maxFlag=1;}
02026             if ($maxFlag)  {
02027                $val['XY'] = implode(',',$tempXY);
02028                $gifCreator = t3lib_div::makeInstance('tslib_gifBuilder');
02029                $gifCreator->init();
02030                $gifCreator->start($val,$this->menuArr[$key]);
02031             }
02032          }
02033          // SAME CODE AS makeGifs()! END
02034 
02035             // Setting the width/height
02036          $totalWH['W'][$key]=$gifCreator->XY[0];
02037          $totalWH['H'][$key]=$gifCreator->XY[1];
02038          $totalWH['W_total']+=$gifCreator->XY[0];
02039          $totalWH['H_total']+=$gifCreator->XY[1];
02040             // ---- //
02041 
02042          $Hcounter+=$gifCreator->XY[1];      // counter is increased
02043          $Wcounter+=$gifCreator->XY[0];      // counter is increased
02044 
02045          if ($maxFlag){break;}
02046       }
02047       return $totalWH;
02048    }

tslib_gmenu::generate  ) 
 

Calls procesItemStates() so that the common configuration for the menu items are resolved into individual configuration per item.

Calls makeGifs() for all "normal" items and if configured for, also the "rollover" items.

Returns:
void
See also:
tslib_menu::procesItemStates(), makeGifs()

Definition at line 1741 of file class.tslib_menu.php.

01741                         {
01742       $splitCount = count($this->menuArr);
01743       if ($splitCount)  {
01744          list($NOconf,$ROconf) = $this->procesItemStates($splitCount);
01745 
01746             //store initial count value
01747          $temp_HMENU_MENUOBJ = $GLOBALS['TSFE']->register['count_HMENU_MENUOBJ'];
01748          $temp_MENUOBJ = $GLOBALS['TSFE']->register['count_MENUOBJ'];
01749             // Now we generate the giffiles:
01750          $this->makeGifs($NOconf,'NO');
01751             // store count from NO obj
01752          $tempcnt_HMENU_MENUOBJ = $GLOBALS['TSFE']->register['count_HMENU_MENUOBJ'];
01753          $tempcnt_MENUOBJ = $GLOBALS['TSFE']->register['count_MENUOBJ'];
01754 
01755          if ($this->mconf['debugItemConf'])  {echo '<h3>$NOconf:</h3>'; debug($NOconf);   }
01756          if ($ROconf)   {     // RollOver
01757                //start recount for rollover with initial values
01758             $GLOBALS['TSFE']->register['count_HMENU_MENUOBJ']= $temp_HMENU_MENUOBJ;
01759             $GLOBALS['TSFE']->register['count_MENUOBJ']= $temp_MENUOBJ;
01760             $this->makeGifs($ROconf,'RO');
01761             if ($this->mconf['debugItemConf'])  {echo '<h3>$ROconf:</h3>'; debug($ROconf);   }
01762          }
01763             // use count from NO obj
01764          $GLOBALS['TSFE']->register['count_HMENU_MENUOBJ'] = $tempcnt_HMENU_MENUOBJ;
01765          $GLOBALS['TSFE']->register['count_MENUOBJ'] = $tempcnt_MENUOBJ;
01766       }
01767    }

tslib_gmenu::makeGifs conf,
resKey
 

Will traverse input array with configuratoin per-item and create corresponding GIF files for the menu.

The data of the files are stored in $this->result

Parameters:
array Array with configuration for each item.
string Type of images: normal ("NO") or rollover ("RO"). Valid values are "NO" and "RO"
Returns:
void private
See also:
generate()

Definition at line 1779 of file class.tslib_menu.php.

01779                                        {
01780       $isGD = $GLOBALS['TYPO3_CONF_VARS']['GFX']['gdlib'];
01781 
01782       if (!is_array($conf)) {
01783          $conf = Array();
01784       }
01785 
01786       $totalWH=array();
01787       $items = count($conf);
01788       if ($isGD)  {
01789             // generate the gif-files. the $menuArr is filled with some values like output_w, output_h, output_file
01790          $Hcounter = 0;
01791          $Wcounter = 0;
01792          $Hobjs = $this->mconf['applyTotalH'];
01793          if ($Hobjs) {$Hobjs = t3lib_div::intExplode(',',$Hobjs);}
01794          $Wobjs = $this->mconf['applyTotalW'];
01795          if ($Wobjs) {$Wobjs = t3lib_div::intExplode(',',$Wobjs);}
01796          $minDim = $this->mconf['min'];
01797          if ($minDim) {$minDim = tslib_cObj::calcIntExplode(',',$minDim.',');}
01798          $maxDim = $this->mconf['max'];
01799          if ($maxDim) {$maxDim = tslib_cObj::calcIntExplode(',',$maxDim.',');}
01800 
01801          if ($minDim)   {
01802             $conf[$items]=$conf[$items-1];
01803             $this->menuArr[$items]=Array();
01804             $items = count($conf);
01805          }
01806 
01807          // TOTAL width
01808          if ($this->mconf['useLargestItemX'] || $this->mconf['useLargestItemY'] || $this->mconf['distributeX'] || $this->mconf['distributeY'])  {
01809             $totalWH = $this->findLargestDims($conf,$items,$Hobjs,$Wobjs,$minDim,$maxDim);
01810          }
01811       }
01812 
01813       $c=0;
01814       $maxFlag=0;
01815       $distributeAccu=array('H'=>0,'W'=>0);
01816       reset($conf);
01817       while (list($key,$val)=each($conf)) {
01818          $GLOBALS['TSFE']->register['count_HMENU_MENUOBJ']++;
01819          $GLOBALS['TSFE']->register['count_MENUOBJ']++;
01820 
01821          if ($items==($c+1) && $minDim)   {
01822             $Lobjs = $this->mconf['removeObjectsOfDummy'];
01823             if ($Lobjs) {
01824                $Lobjs = t3lib_div::intExplode(',',$Lobjs);
01825                reset($Lobjs);
01826                while(list(,$remItem)=each($Lobjs)) {
01827                   unset($val[$remItem]);
01828                   unset($val[$remItem.'.']);
01829                }
01830             }
01831 
01832             $flag =0;
01833             $tempXY = explode(',',$val['XY']);
01834             if ($Wcounter<$minDim[0])  {$tempXY[0]=$minDim[0]-$Wcounter; $flag=1;}
01835             if ($Hcounter<$minDim[1])  {$tempXY[1]=$minDim[1]-$Hcounter; $flag=1;}
01836             $val['XY'] = implode(',',$tempXY);
01837             if (!$flag){break;}
01838          }
01839          $c++;
01840 
01841 
01842          if ($isGD)  {
01843                // Pre-working the item
01844             $gifCreator = t3lib_div::makeInstance('tslib_gifBuilder');
01845             $gifCreator->init();
01846             $gifCreator->start($val,$this->menuArr[$key]);
01847 
01848                // If useLargestItemH/W is specified
01849             if (count($totalWH) && ($this->mconf['useLargestItemX'] || $this->mconf['useLargestItemY'])) {
01850                $tempXY = explode(',',$gifCreator->setup['XY']);
01851                if ($this->mconf['useLargestItemX'])   {$tempXY[0] = max($totalWH['W']);}
01852                if ($this->mconf['useLargestItemY'])   {$tempXY[1] = max($totalWH['H']);}
01853                   // regenerate the new values...
01854                $val['XY'] = implode(',',$tempXY);
01855                $gifCreator = t3lib_div::makeInstance('tslib_gifBuilder');
01856                $gifCreator->init();
01857                $gifCreator->start($val,$this->menuArr[$key]);
01858             }
01859 
01860                // If distributeH/W is specified
01861             if (count($totalWH) && ($this->mconf['distributeX'] || $this->mconf['distributeY']))   {
01862                $tempXY = explode(',',$gifCreator->setup['XY']);
01863 
01864                if ($this->mconf['distributeX']) {
01865                   $diff = $this->mconf['distributeX']-$totalWH['W_total']-$distributeAccu['W'];
01866                   $compensate = round($diff /($items-$c+1));
01867                   $distributeAccu['W']+=$compensate;
01868                   $tempXY[0] = $totalWH['W'][$key]+$compensate;
01869                }
01870                if ($this->mconf['distributeY']) {
01871                   $diff = $this->mconf['distributeY']-$totalWH['H_total']-$distributeAccu['H'];
01872                   $compensate = round($diff /($items-$c+1));
01873                   $distributeAccu['H']+=$compensate;
01874                   $tempXY[1] = $totalWH['H'][$key]+$compensate;
01875                }
01876                   // regenerate the new values...
01877                $val['XY'] = implode(',',$tempXY);
01878                $gifCreator = t3lib_div::makeInstance('tslib_gifBuilder');
01879                $gifCreator->init();
01880                $gifCreator->start($val,$this->menuArr[$key]);
01881             }
01882 
01883                // If max dimensions are specified
01884             if ($maxDim)   {
01885                $tempXY = explode(',',$val['XY']);
01886                if ($maxDim[0] && $Wcounter+$gifCreator->XY[0]>=$maxDim[0]) {$tempXY[0]==$maxDim[0]-$Wcounter; $maxFlag=1;}
01887                if ($maxDim[1] && $Hcounter+$gifCreator->XY[1]>=$maxDim[1]) {$tempXY[1]=$maxDim[1]-$Hcounter; $maxFlag=1;}
01888                if ($maxFlag)  {
01889                   $val['XY'] = implode(',',$tempXY);
01890                   $gifCreator = t3lib_div::makeInstance('tslib_gifBuilder');
01891                   $gifCreator->init();
01892                   $gifCreator->start($val,$this->menuArr[$key]);
01893                }
01894             }
01895 
01896 
01897 
01898 
01899             // displace
01900             if ($Hobjs) {
01901                reset($Hobjs);
01902                while(list(,$index)=each($Hobjs))   {
01903                   if ($gifCreator->setup[$index] && $gifCreator->setup[$index.'.']) {
01904                      $oldOffset = explode(',',$gifCreator->setup[$index.'.']['offset']);
01905                      $gifCreator->setup[$index.'.']['offset'] = implode(',',$gifCreator->applyOffset($oldOffset,Array(0,-$Hcounter)));
01906                   }
01907                }
01908             }
01909 
01910             if ($Wobjs) {
01911                reset($Wobjs);
01912                while(list(,$index)=each($Wobjs))   {
01913                   if ($gifCreator->setup[$index] && $gifCreator->setup[$index.'.']) {
01914                      $oldOffset = explode(',',$gifCreator->setup[$index.'.']['offset']);
01915                      $gifCreator->setup[$index.'.']['offset'] = implode(',',$gifCreator->applyOffset($oldOffset,Array(-$Wcounter,0)));
01916                   }
01917                }
01918             }
01919          }
01920 
01921             // Finding alternative GIF names if any (by altImgResource)
01922          $gifFileName='';
01923          if ($conf[$key]['altImgResource'] || is_array($conf[$key]['altImgResource.']))   {
01924             if (!is_object($cObj)) {$cObj=t3lib_div::makeInstance('tslib_cObj');}
01925             $cObj->start($this->menuArr[$key],'pages');
01926             $altImgInfo = $cObj->getImgResource($conf[$key]['altImgResource'],$conf[$key]['altImgResource.']);
01927             $gifFileName=$altImgInfo[3];
01928          }
01929 
01930             // If an alternative name was NOT given, find the GIFBUILDER name.
01931          if (!$gifFileName && $isGD)   {
01932             $gifCreator->createTempSubDir('menu/');
01933             $gifFileName = $gifCreator->fileName('menu/');
01934          }
01935 
01936             // Generation of image file:
01937          if (@file_exists($gifFileName))  {     // File exists
01938             $info = @getimagesize($gifFileName);
01939             $this->result[$resKey][$key]['output_w']=intval($info[0]);
01940             $this->result[$resKey][$key]['output_h']=intval($info[1]);
01941             $this->result[$resKey][$key]['output_file']=$gifFileName;
01942          } elseif ($isGD) {      // file is generated
01943             $gifCreator->make();
01944             $this->result[$resKey][$key]['output_w']=$gifCreator->w;
01945             $this->result[$resKey][$key]['output_h']=$gifCreator->h;
01946             $this->result[$resKey][$key]['output_file'] = $gifFileName;
01947             $gifCreator->output($this->result[$resKey][$key]['output_file']);
01948             $gifCreator->destroy();
01949          }
01950          $this->result[$resKey][$key]['output_file'] = t3lib_div::png_to_gif_by_imagemagick($this->result[$resKey][$key]['output_file']);
01951          $this->result[$resKey][$key]['noLink']=$conf[$key]['noLink'];
01952          $this->result[$resKey][$key]['altTarget']=$conf[$key]['altTarget'];
01953          $this->result[$resKey][$key]['imgParams']=$conf[$key]['imgParams'];
01954          $this->result[$resKey][$key]['ATagTitle'] = $conf[$key]['ATagTitle'];
01955          $this->result[$resKey][$key]['ATagTitle.'] = $conf[$key]['ATagTitle.'];
01956          $this->result[$resKey][$key]['wrap'] = $conf[$key]['wrap'];
01957          $this->result[$resKey][$key]['allWrap'] = $conf[$key]['allWrap'];
01958          $this->result[$resKey][$key]['allWrap.'] = $conf[$key]['allWrap.'];
01959          $this->result[$resKey][$key]['subst_elementUid'] = $conf[$key]['subst_elementUid'];
01960          $this->result[$resKey][$key]['allStdWrap.'] = $conf[$key]['allStdWrap.'];
01961 
01962          $Hcounter+=$this->result[$resKey][$key]['output_h'];     // counter is increased
01963          $Wcounter+=$this->result[$resKey][$key]['output_w'];     // counter is increased
01964 
01965          if ($maxFlag){break;}
01966       }
01967    }

tslib_gmenu::writeMenu  ) 
 

Traverses the ->result['NO'] array of menu items configuration (made by ->generate()) and renders the HTML of each item (the images themselves was made with makeGifs() before this.

See ->generate()) During the execution of this function many internal methods prefixed "extProc_" from this class is called and many of these are for now dummy functions. But they can be used for processing as they are used by the GMENU_LAYERS

Returns:
string The HTML for the menu (returns result through $this->extProc_finish(); )

Definition at line 2056 of file class.tslib_menu.php.

02056                         {
02057       if (is_array($this->menuArr) && is_array($this->result) && count($this->result) && is_array($this->result['NO'])) {
02058          $this->WMcObj = t3lib_div::makeInstance('tslib_cObj');   // Create new tslib_cObj for our use
02059          $this->WMresult='';
02060          $this->INPfixMD5 = substr(md5(microtime().$this->GMENU_fixKey),0,4);
02061          $this->WMmenuItems = count($this->result['NO']);
02062          $this->extProc_init();
02063          for ($key=0;$key<$this->WMmenuItems;$key++)  {
02064             if ($this->result['NO'][$key]['output_file'])   {
02065                $this->WMcObj->start($this->menuArr[$key],'pages');      // Initialize the cObj with the page record of the menu item
02066 
02067                $this->I =array();
02068                $this->I['key'] = $key;
02069                $this->I['INPfix']= $this->imgNameNotRandom?'':'_'.$this->INPfixMD5.'_'.$key;
02070                $this->I['val'] = $this->result['NO'][$key];
02071                $this->I['title'] = $this->getPageTitle($this->menuArr[$key]['title'],$this->menuArr[$key]['nav_title']);
02072                $this->I['uid'] = $this->menuArr[$key]['uid'];
02073                $this->I['mount_pid'] = $this->menuArr[$key]['mount_pid'];
02074                $this->I['pid'] = $this->menuArr[$key]['pid'];
02075                $this->I['spacer'] = $this->menuArr[$key]['isSpacer'];
02076                if (!$this->I['uid'] && !$this->menuArr[$key]['_OVERRIDE_HREF']) {$this->I['spacer']=1;}
02077                $this->I['noLink'] = ($this->I['spacer'] || $this->I['val']['noLink'] || !count($this->menuArr[$key]));     // !count($this->menuArr[$key]) means that this item is a dummyItem
02078                $this->I['name']='';
02079 
02080                   // Get link.
02081                $this->I['linkHREF'] = $this->link($key,$this->I['val']['altTarget'],$this->mconf['forceTypeValue']);
02082                   // Title attribute of links:
02083                $titleAttrValue = $this->WMcObj->stdWrap($this->I['val']['ATagTitle'],$this->I['val']['ATagTitle.']);
02084                if (strlen($titleAttrValue))  {
02085                   $this->I['linkHREF']['title'] = $titleAttrValue;
02086                }
02087                   // Setting "blurlink()" function:
02088                if (!$this->mconf['noBlur'])  {
02089                   $this->I['linkHREF']['onFocus']='blurLink(this);';
02090                }
02091 
02092                   // Set rollover
02093                if ($this->result['RO'][$key] && !$this->I['noLink']) {
02094                   $this->I['theName'] = $this->imgNamePrefix.$this->I['uid'].$this->I['INPfix'];
02095                   $this->I['name'] = ' name="'.$this->I["theName"].'"';
02096                   $this->I['linkHREF']['onMouseover']=$this->WMfreezePrefix.'over(\''.$this->I['theName'].'\');';
02097                   $this->I['linkHREF']['onMouseout']=$this->WMfreezePrefix.'out(\''.$this->I['theName'].'\');';
02098                   $GLOBALS['TSFE']->JSImgCode.= chr(10).$this->I['theName'].'_n=new Image(); '.$this->I['theName'].'_n.src = "'.$GLOBALS['TSFE']->absRefPrefix.$this->I['val']['output_file'].'"; ';
02099                   $GLOBALS['TSFE']->JSImgCode.= chr(10).$this->I['theName'].'_h=new Image(); '.$this->I['theName'].'_h.src = "'.$GLOBALS['TSFE']->absRefPrefix.$this->result['RO'][$key]['output_file'].'"; ';
02100                   $GLOBALS['TSFE']->imagesOnPage[]=$this->result['RO'][$key]['output_file'];
02101                   $GLOBALS['TSFE']->setJS('mouseOver');
02102                   $this->extProc_RO($key);
02103                }
02104                   // Set access key
02105                if ($this->mconf['accessKey'])   {
02106                   $this->I['accessKey'] = $this->accessKey($this->I['title']);
02107                } else {
02108                   $this->I['accessKey']=Array();
02109                }
02110 
02111                   // Set altText
02112                $this->I['altText'] = $this->mconf['disableAltText'] ? '' : $this->I['title'].$this->I['accessKey']['alt'];
02113 
02114                   // Calling extra processing function
02115                $this->extProc_beforeLinking($key);
02116 
02117                   // Set linking
02118                if (!$this->I['noLink'])   {
02119                   $this->setATagParts();
02120                } else {
02121                   $this->I['A1'] = '';
02122                   $this->I['A2'] = '';
02123                }
02124                $this->I['IMG'] = '<img src="'.$GLOBALS['TSFE']->absRefPrefix.$this->I['val']['output_file'].'" width="'.$this->I['val']['output_w'].'" height="'.$this->I['val']['output_h'].'" border="0" alt="'.htmlspecialchars($this->I['altText']).'"'.$this->I['name'].($this->I['val']['imgParams']?' '.$this->I['val']['imgParams']:'').' />';
02125 
02126                   // Make before, middle and after parts
02127                $this->I['parts'] = array();
02128                $this->I['parts']['ATag_begin'] = $this->I['A1'];
02129                $this->I['parts']['image'] = $this->I['IMG'];
02130                $this->I['parts']['ATag_end'] = $this->I['A2'];
02131 
02132                   // Passing I to a user function
02133                if ($this->mconf['IProcFunc'])   {
02134                   $this->I = $this->userProcess('IProcFunc',$this->I);
02135                }
02136 
02137                   // Putting the item together.
02138                   // Merge parts + beforeAllWrap
02139                $this->I['theItem']= implode('',$this->I['parts']);
02140                $this->I['theItem']= $this->extProc_beforeAllWrap($this->I['theItem'],$key);
02141 
02142                   // wrap:
02143                $this->I['theItem']= $this->tmpl->wrap($this->I['theItem'],$this->I['val']['wrap']);
02144 
02145                   // allWrap:
02146                $allWrap = $this->WMcObj->stdWrap($this->I['val']['allWrap'],$this->I['val']['allWrap.']);
02147                $this->I['theItem'] = $this->tmpl->wrap($this->I['theItem'],$allWrap);
02148 
02149                if ($this->I['val']['subst_elementUid'])  $this->I['theItem'] = str_replace('{elementUid}',$this->I['uid'],$this->I['theItem']);
02150 
02151                   // allStdWrap:
02152                if (is_array($this->I['val']['allStdWrap.']))   {
02153                   $this->I['theItem'] = $this->WMcObj->stdWrap($this->I['theItem'],$this->I['val']['allStdWrap.']);
02154                }
02155 
02156                $GLOBALS['TSFE']->imagesOnPage[]=$this->I['val']['output_file'];
02157 
02158                $this->extProc_afterLinking($key);
02159             }
02160          }
02161          return $this->extProc_finish();
02162       }
02163    }


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