Go to the documentation of this file.00001 <?php
00002
00007 class oxwServiceMenu extends oxWidget
00008 {
00009
00017 protected $_aComponentNames = array('oxcmp_user' => 1);
00018
00024 protected $_sThisTemplate = 'widget/header/servicemenu.tpl';
00025
00031 public function getCompareItemsCnt()
00032 {
00033 $oCompare = oxNew("compare");
00034 $iCompItemsCnt = $oCompare->getCompareItemsCnt();
00035
00036 return $iCompItemsCnt;
00037 }
00038
00046 public function getCompareItems($blJson = false)
00047 {
00048 $oCompare = oxNew("compare");
00049 $aCompareItems = $oCompare->getCompareItems();
00050
00051 if ($blJson) {
00052 $aCompareItems = json_encode($aCompareItems);
00053 }
00054
00055 return $aCompareItems;
00056 }
00057
00058 }