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
00075 function user_itemArrayProcFuncTest($menuArr,$conf) {
00076 if ($conf['demoItemStates']) {
00077 reset($menuArr);
00078 $c=0;
00079 $teststates=explode(',','NO,ACT,IFSUB,CUR,USR,SPC,USERDEF1,USERDEF2');
00080 while(list($k,$v)=each($menuArr)) {
00081 $menuArr[$k]['ITEM_STATE']=$teststates[$c];
00082 $menuArr[$k]['title'].= ($teststates[$c] ? ' ['.$teststates[$c].']' : '');
00083 $c++;
00084 }
00085 } else {
00086 if (!count($menuArr)) {
00087 $parentPageId = $conf['parentObj']->id;
00088 $parentPageRow = $GLOBALS['TSFE']->sys_page->getPage($parentPageId);
00089 if (is_array($parentPageRow)) {
00090 $menuArr[]=$parentPageRow;
00091 }
00092 }
00093 }
00094 return $menuArr;
00095 }
00096
00105 function user_IProcFuncTest($I,$conf) {
00106 $itemRow = $conf['parentObj']->menuArr[$I['key']];
00107
00108
00109 $I['linkHREF']['onMouseover'].='extraRollover(\''.rawurlencode($itemRow['title']).'\');';
00110 $conf['parentObj']->I = $I;
00111 $conf['parentObj']->setATagParts();
00112 $I = $conf['parentObj']->I;
00113 if ($I['parts']['ATag_begin']) $I['parts']['ATag_begin']=$I['A1'];
00114
00115 if ($conf['debug']) {
00116
00117 echo 'ITEM: <h2>'.htmlspecialchars($itemRow['uid'].': '.$itemRow['title']).'</h2>';
00118 t3lib_div::debug($itemRow);
00119 t3lib_div::debug($I);
00120 echo '<hr />';
00121 }
00122
00123 return $I;
00124 }
00125
00126
00127 ?>