/** * @return null|Shopware_Plugins_Frontend_Boxalino_P13NHelper */ public static function instance() { if (self::$instance == null) { self::$instance = new Shopware_Plugins_Frontend_Boxalino_P13NHelper(); } return self::$instance; }
public function productStreamSliderRecommendationsAction() { $helper = Shopware_Plugins_Frontend_Boxalino_P13NHelper::instance(); $choiceId = $this->Request()->getQuery('bxChoiceId'); $count = $this->Request()->getQuery('bxCount'); $articles = $helper->findRecommendations(null, null, $choiceId, $count); $this->View()->assign('articles', $articles); }
/** * constructor */ public function __construct() { $this->helper = Shopware_Plugins_Frontend_Boxalino_P13NHelper::instance(); }
/** * constructor * @param Shopware_Plugins_Frontend_Boxalino_Bootstrap $bootstrap */ public function __construct(Shopware_Plugins_Frontend_Boxalino_Bootstrap $bootstrap) { $this->helper = Shopware_Plugins_Frontend_Boxalino_P13NHelper::instance(); $this->bootstrap = $bootstrap; $this->config = Shopware()->Config(); }