OXID eShop CE  4.8.10
 All Classes Files Functions Variables Pages
oxwservicemenu.php
Go to the documentation of this file.
1 <?php
2 
7 class oxwServiceMenu extends oxWidget
8 {
15  protected $_aComponentNames = array( 'oxcmp_user' => 1 );
16 
21  protected $_sThisTemplate = 'widget/header/servicemenu.tpl';
22 
28  public function getCompareItemsCnt()
29  {
30  $oCompare = oxNew( "compare" );
31  $iCompItemsCnt = $oCompare->getCompareItemsCnt();
32  return $iCompItemsCnt;
33  }
34 
42  public function getCompareItems($blJson = false)
43  {
44  $oCompare = oxNew( "compare" );
45  $aCompareItems = $oCompare->getCompareItems();
46 
47  if ($blJson) {
48  $aCompareItems = json_encode($aCompareItems);
49  }
50 
51  return $aCompareItems;
52  }
53 
54 }