Exemple #1
0
 protected function _construct()
 {
     parent::_construct();
     if (Mage::registry('review_data')) {
         $this->setReviewId(Mage::registry('review_data')->getReviewId());
     }
 }
 public function _construct()
 {
     parent::_construct();
     $this->setTemplate('attributemanager/index.phtml');
     // active le template
     $this->getAttributemanager();
 }
Exemple #3
0
 protected function _construct()
 {
     parent::_construct();
     $this->setData('customer', Mage::registry('current_customer'));
     $this->setData('website', $this->getCustomer()->getStore()->getWebsite());
     $this->addData(Mage::getModel('points/summary')->loadByCustomer($this->getCustomer())->getData());
 }
 protected function _construct()
 {
     parent::_construct();
     $this->_instanceId = ++self::$_instancesNumber;
     $this->setId(Mage::helper('core')->uniqHash('customGridEditor_' . $this->_instanceId));
     $this->setTemplate('bl/customgrid/widget/grid/columns/editor.phtml');
 }
 public function _construct()
 {
     parent::_construct();
     $this->setTemplate('helpdeskultimate/departments/stats.phtml');
     $this->setTitle($this->__("Departments Statistics"));
     $this->_prepareCollection();
 }
 public function _construct()
 {
     parent::_construct();
     $this->_instanceId = ++self::$_instanceNumber;
     $this->setId(Mage::helper('core')->uniqHash('blcgCollectionRendererSelect' . $this->_instanceId));
     $this->setTemplate('bl/customgrid/column/renderer/collection/select.phtml');
 }
Exemple #7
0
 /**
  * Initialize template and cache settings
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('page/menu.phtml');
     $this->_url = Mage::getModel('adminhtml/url');
     $this->setCacheTags(array(self::CACHE_TAGS));
 }
Exemple #8
0
 protected function _construct()
 {
     parent::_construct();
     if (Mage::helper('amorderattach')->isAllowedEdit()) {
         $this->setTemplate('amorderattach/js.phtml');
     }
 }
 /**
  *
  */
 public function _construct()
 {
     parent::_construct();
     if (!$this->hasData('template')) {
         $this->setData('template', 'meanbee/cacheviewer/report.phtml');
     }
 }
Exemple #10
0
 /**
  * Class constructor
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $action = Mage::app()->getFrontController()->getAction();
     if ($action) {
         $this->addBodyClass($action->getFullActionName('-'));
     }
 }
Exemple #11
0
 /**
  * Check for template Id in request
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $templateId = $this->getRequest()->getParam('template_id');
     if ($templateId) {
         $this->setTemplateId($templateId);
     }
 }
Exemple #12
0
 protected function _construct()
 {
     $this->model = Mage::getModel('tawkwidget/widget');
     $this->model->load(0);
     $this->widgets = Mage::getModel('tawkwidget/widget')->getCollection();
     parent::_construct();
     $this->setTemplate('tawk/customization.phtml');
     $this->setFormAction(Mage::getUrl('*/*/savewidget'));
 }
 public function _construct()
 {
     parent::_construct();
     $this->setTemplate('bl/customgrid/store/select.phtml');
     $this->setUseConfirm(true);
     $this->setUseAjax(true);
     $this->setUseGridLabel($this->__('Use Grid Store View'));
     $this->setDefaultStoreName($this->__('Default Values'));
 }
Exemple #14
0
 protected function _construct()
 {
     $this->setWidth(self::DEFAULT_WIDTH);
     $this->setHeight(self::DEFAULT_HEIGHT);
     $this->setSuccessMessage($this->__("Item has been successfully saved."));
     $this->setParamKey('entity_id');
     parent::_construct();
     $this->setTemplate(self::TEMPLATE_PATH);
 }
Exemple #15
0
 public function __construct($till_id = 0)
 {
     $this->setTemplate('webpos/webpos/reports/xreport.phtml');
     $this->_till_id = $till_id;
     $till = Mage::getModel('webpos/session')->getTill();
     if ($till->getId()) {
         $this->_till_id = $till->getTillId();
     }
     parent::_construct();
 }
Exemple #16
0
 /**
  * Sets the form action urls for the page.
  */
 public function _construct()
 {
     parent::_construct();
     $this->setFormAction(Mage::helper('adminhtml')->getUrl('*/alertsite/advancedEdit'));
     //if(!$formValues->getBasicSiteId() || !$formValues->getDejaUrlId() || !$formValues->getLoginEmail() || !$formValues->getPassword())
     if (Mage::getSingleton('core/session')->getFormData()) {
         $this->addData(Mage::getSingleton('core/session')->getFormData()->getData());
     }
     $this->formData = Mage::getSingleton('core/session')->unsFormData();
 }
Exemple #17
0
 protected function _construct()
 {
     parent::_construct();
     $id = $this->getRequest()->getParam('id');
     if (!is_array($id)) {
         $this->_result = Mage::getModel('webforms/results')->load($id);
     } else {
         $this->_result = false;
     }
     $this->setTemplate('webforms/reply/history.phtml');
 }
Exemple #18
0
 /**
  * Constructor. Set template.
  */
 protected function _construct()
 {
     parent::_construct();
     $this->requestData['data-domain'] = Mage::getStoreConfig('oxidian_opentaps/settings/domain', Mage::app()->getStore());
     $this->requestData['data-authtoken'] = Mage::getStoreConfig('oxidian_opentaps/settings/auth_token', Mage::app()->getStore());
     $this->requestData['data-canedit'] = 'true';
     $this->requestData['data-shownomore'] = 'false';
     $this->requestData['data-showreflinks'] = 'true';
     $this->requestData['style'] = 'width:100%;';
     $this->requestData['data-userparams'] = '';
     $this->requestData['data-queryparams'] = '';
     $this->tagUrl = rawurlencode(Mage::helper('core/url')->getCurrentUrl());
     $this->requestData['data-tagurl'] = $this->tagUrl;
     $this->setTemplate('oxidian_opentaps/widget.phtml');
 }
Exemple #19
0
 protected function _construct()
 {
     parent::_construct();
     $activeConfigValue = Mage::getStoreConfig('tangkoko_admintools/login/login_active');
     $ipConfigValue = Mage::getStoreConfig('tangkoko_admintools/login/login_ip');
     $remoteAddr = Mage::helper('core/http')->getRemoteAddr();
     $ipArray = array();
     if (!empty($ipConfigValue)) {
         $ipArray = explode(',', $ipConfigValue);
         $ipArray = array_map('trim', $ipArray);
     }
     if ($activeConfigValue == 1 && in_array($remoteAddr, $ipArray)) {
         $this->setTemplate("tangkoko/admintools/login.phtml");
     } else {
         $this->setTemplate("login.phtml");
     }
 }
Exemple #20
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('ampgrid/js.phtml');
 }
Exemple #21
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('bl/customgrid/widget/grid/columns/filters.phtml');
 }
Exemple #22
0
 /**
  * Set transactional emails grid template
  *
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('system/email/template/list.phtml');
 }
 /**
  * psuedo constructor
  *
  * @return void
  * @access public
  */
 public function _construct()
 {
     parent::_construct();
     $this->setTemplate('bronto/verify/conflictchecker/errors.phtml');
 }
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('litle/customer/tab/vault.phtml');
 }
Exemple #25
0
 /**
  * Init block
  *
  */
 protected function _construct()
 {
     $this->addColumnRender('qty', 'adminhtml/sales_items_column_qty', 'sales/items/column/qty.phtml');
     $this->addColumnRender('name', 'adminhtml/sales_items_column_name', 'sales/items/column/name.phtml');
     parent::_construct();
 }
Exemple #26
0
 protected function _construct()
 {
     parent::_construct();
     $this->initVariables();
     $this->setTemplate('ampgrid/columns.phtml');
 }
Exemple #27
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('tree.phtml');
 }
Exemple #28
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('ifirma/invoice.phtml');
 }
Exemple #29
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('sales/order/view/tab/history.phtml');
 }
Exemple #30
0
 protected function _construct()
 {
     $this->_process = Mage::getModel('compiler/process');
     $this->_validationResult = $this->_process->validate();
     return parent::_construct();
 }