00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00074 function user_itemArrayProcFuncTest($menuArr,$conf) {
00075 if ($conf['demoItemStates']) {
00076 reset($menuArr);
00077 $c=0;
00078 $teststates=explode(',','NO,ACT,IFSUB,CUR,USR,SPC,USERDEF1,USERDEF2');
00079 while(list($k,$v)=each($menuArr)) {
00080 $menuArr[$k]['ITEM_STATE']=$teststates[$c];
00081 $menuArr[$k]['title'].= ($teststates[$c] ? ' ['.$teststates[$c].']' : '');
00082 $c++;
00083 }
00084 } else {
00085 if (!count($menuArr)) {
00086 $parentPageId = $conf['parentObj']->id;
00087 $parentPageRow = $GLOBALS['TSFE']->sys_page->getPage($parentPageId);
00088 if (is_array($parentPageRow)) {
00089 $menuArr[]=$parentPageRow;
00090 }
00091 }
00092 }
00093 return $menuArr;
00094 }
00095
00104 function user_IProcFuncTest($I,$conf) {
00105 $itemRow = $conf['parentObj']->menuArr[$I['key']];
00106
00107
00108 $I['linkHREF']['onMouseover'].='extraRollover(\''.rawurlencode($itemRow['title']).'\');';
00109 $conf['parentObj']->I = $I;
00110 $conf['parentObj']->setATagParts();
00111 $I = $conf['parentObj']->I;
00112 if ($I['parts']['ATag_begin']) $I['parts']['ATag_begin']=$I['A1'];
00113
00114 if ($conf['debug']) {
00115
00116 echo 'ITEM: <h2>'.htmlspecialchars($itemRow['uid'].': '.$itemRow['title']).'</h2>';
00117 t3lib_div::debug($itemRow);
00118 t3lib_div::debug($I);
00119 echo '<hr />';
00120 }
00121
00122 return $I;
00123 }
00124
00125
00126 ?>