function __construct(Zend_Controller_Request_Abstract $request, Zend_Controller_Response_Abstract $response, array $invokeArgs = array()) { parent::__construct($request, $response, $invokeArgs); $post = $this->getRequest()->getParams(); if (isset($post['action']) && isset($post['submodule'])) { $json = Mage::helper('core')->jsonDecode($post['values']); if (isset($json['parent'])) { $url = Mage::helper('ajaxKit')->clearUrl($json['parent']['url']); $url_arr = explode('?', $url); $url = $url_arr[0]; if ('product' == $json['parent']['controller'] || 'category' == $json['parent']['controller']) { $oRewrite = Mage::getModel('core/url_rewrite')->setStoreId(Mage::app()->getStore()->getId())->loadByRequestPath($url); if ('product' == $json['parent']['controller']) { Mage::register('current_product', Mage::getModel('catalog/product')->load((int) $oRewrite->getProductId())); } else { Mage::register('current_category', Mage::getModel('catalog/category')->load((int) $oRewrite->getCategoryId())); } } elseif ('cms' == $json['parent']['module']) { if ('index' == $json['parent']['controller']) { $pageId = Mage::getStoreConfig(Mage_Cms_Helper_Page::XML_PATH_HOME_PAGE); Mage::getSingleton('cms/page')->load($pageId); } else { Mage::getSingleton('cms/page')->load($url, 'identifier'); } } Mage::register('meigee_ajax', $json['parent']); } } }
public function __construct(\Zend_Controller_Request_Abstract $request, \Zend_Controller_Response_Abstract $response, array $invokeArgs = array()) { $this->pfConfig = Payfort_Fort_Config::getInstance(); $this->pfPayment = Payfort_Fort_Payment::getInstance(); $this->pfHelper = Payfort_Fort_Helper::getInstance(); $this->pfOrder = new Payfort_Fort_Order(); $this->integrationType = 'redirection'; parent::__construct($request, $response, $invokeArgs); }
public function __construct(\Zend_Controller_Request_Abstract $request, \Zend_Controller_Response_Abstract $response, array $invokeArgs = array()) { $helper = new \Expressly_Expressly_Helper_Client(); $this->app = $helper->getApp(); $this->merchantProvider = $this->app['merchant.provider']; $this->resolver = $this->app['route.resolver']; $this->dispatcher = $this->app['dispatcher']; $this->logger = $this->app['logger']; parent::__construct($request, $response, $invokeArgs); }
public function __construct() { parent::__construct(); // $this->_keepFrame = $this->getFrontConfig ( 'image_frame' ) < 1; // $thumbnailSize = $this->getFrontConfig ( 'thumbnail_image' ); // $mainSize = $this->getFrontConfig ( 'main_image' ); // if (intval ( $thumbnailSize ) > 80) { // $this->thumbnail_with = intval ( $thumbnailSize ); // if (($index = stripos ( $thumbnailSize, 'x' ))) { // $height = intval ( trim ( substr ( $thumbnailSize, $index + 1 ) ) ); // $this->thumbnail_height = $height > 80 ? $height : null; // } // } // if (intval ( $mainSize ) > 160) { // $this->main_with = intval ( $mainSize ); // if (($index = stripos ( $mainSize, 'x' ))) { // $height = intval ( trim ( substr ( $mainSize, $index + 1 ) ) ); // $this->main_height = $height > 160 ? $height : null; // } // } // $this->_keepAspectRatio = $this->main_height < 1; }
/** * Initializes the class. * * @return void */ public function __construct(Zend_Controller_Request_Abstract $request, Zend_Controller_Response_Abstract $response, array $invokeArgs = array()) { // call the parent constructor parent::__construct($request, $response, $invokeArgs); }
public function __construct($context) { parent::__construct(\Mage::app()->getRequest(), \Mage::app()->getResponse()); }