Go to the documentation of this file.00001 <?php
00002
00007 class oxwServiceMenu extends oxWidget
00008 {
00015 protected $_aComponentNames = array( 'oxcmp_user' => 1 );
00016
00021 protected $_sThisTemplate = 'widget/header/servicemenu.tpl';
00022
00028 public function getCompareItemsCnt()
00029 {
00030 $oCompare = oxNew( "compare" );
00031 $iCompItemsCnt = $oCompare->getCompareItemsCnt();
00032 return $iCompItemsCnt;
00033 }
00034
00042 public function getCompareItems($blJson = false)
00043 {
00044 $oCompare = oxNew( "compare" );
00045 $aCompareItems = $oCompare->getCompareItems();
00046
00047 if ($blJson) {
00048 $aCompareItems = json_encode($aCompareItems);
00049 }
00050
00051 return $aCompareItems;
00052 }
00053
00054 }