34 $this->sName =
'bottom';
35 $this->sDbTable =
'sys_menu_bottom';
36 $this->sCacheKey =
'sys_menu_bottom';
38 $this->aMenuInfo = array();
41 $this->aMenuInfo[
'memberNick'] =
getNickName($this->aMenuInfo[
'memberID']);
42 $this->aMenuInfo[
'memberPass'] =
getPassword($this->aMenuInfo[
'memberID']);
43 $this->aMenuInfo[
'memberLink'] =
getProfileLink($this->aMenuInfo[
'memberID']);
44 $this->aMenuInfo[
'visible'] =
'memb';
46 $this->aMenuInfo[
'memberID'] = 0;
47 $this->aMenuInfo[
'memberNick'] =
'';
48 $this->aMenuInfo[
'memberPass'] =
'';
49 $this->aMenuInfo[
'memberLink'] =
'';
50 $this->aMenuInfo[
'visible'] =
'non';
52 $this->aItems = array();
60 $this->aItems =
$oCache->getData(
$GLOBALS[
'MySQL']->genDbCacheKey($this->sCacheKey));
62 if($this->aItems ===
null) {
66 $this->aItems =
$oCache->getData(
$GLOBALS[
'MySQL']->genDbCacheKey($this->sCacheKey));
69 if(!$this->aItems || !is_array($this->aItems)) {
70 echo
'<b>Warning!</b> Cannot evaluate ' . $this->sName .
' menu cache.';
79 $sEval =
"return array(\n";
80 $aFields = array(
'Caption',
'Name',
'Icon',
'Link',
'Script',
'Target',
'Order',
'Visible');
82 $sQuery =
"SELECT `ID`, `" . implode(
'`, `',
$aFields ) .
"` FROM `" . $this->sDbTable .
"` WHERE `Active`='1' ORDER BY `Order`";
85 while($aItem = $rMenu->fetch()) {
86 $sEval .=
" " . str_pad( $aItem[
'ID'], 2 ) .
" => array(\n";
99 $sEval .=
" " . str_pad(
"'$sField'", 11 ) .
" => \"$sCont\",\n";
122 return strpos($sVisible, $this->aMenuInfo[
'visible']) !==
false;
127 foreach($this->aMenuInfo
as $k => $v)
128 $sData = str_replace(
'{'.$k.
'}', $v, $sData);