Пример #1
0
 function __construct($config = array())
 {
     parent::__construct($config);
     //	print_r(JRequest::get('post')); exit;
     // Register Extra tasks
     $this->registerTask('add', 'display');
     $this->registerTask('edit', 'display');
 }
Пример #2
0
 function __construct($config = array())
 {
     parent::__construct($config);
     // Register Extra tasks
     $this->registerTask('save', 'save');
     $this->registerTask('apply', 'save');
     $this->registerTask('trash', 'remove');
     $this->registerTask('delete', 'remove');
     $this->registerTask('close', 'cancel');
     $this->registerTask('unpublish', 'publish');
 }
Пример #3
0
 function __construct($config = array())
 {
     parent::__construct($config);
     //print_r(JRequest::get('post')); exit;
     // Register Extra tasks
     $this->registerTask('add', 'display');
     $this->registerTask('edit', 'display');
     $this->registerTask('apply', 'save');
     $this->registerTask('unpublish', 'publish');
     $this->registerTask('notrequired', 'required');
 }
Пример #4
0
 function __construct()
 {
     parent::__construct();
     JFactory::getDocument()->setCharset('utf-8');
     JResponse::setHeader('X-Cache-Control', 'False', true);
     $this->params = JComponentHelper::getParams($this->option);
     //	$this->defaultShippingMethod = J2StoreHelperCart::getStoreAddress()->config_shipping_default;
     // create the order object
     $this->_order = JTable::getInstance('Orders', 'Table');
     //initialise tax class
     $this->tax = new J2StoreTax();
     //initialise the session object
     $this->session = JFactory::getSession();
     //language
     $language = JFactory::getLanguage();
     /* Set the base directory for the language */
     $base_dir = JPATH_SITE;
     /* Load the language. IMPORTANT Becase we use ajax to load cart */
     $language->load('com_j2store', $base_dir, $language->getTag(), true);
 }
Пример #5
0
 /**
  * constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->set('suffix', 'payment');
 }
Пример #6
0
 function __construct()
 {
     parent::__construct();
 }
Пример #7
0
 function __construct()
 {
     parent::__construct();
     $this->registerTask('unsetDefault', 'setDefault');
     $this->registerTask('setDefault', 'setDefault');
 }
Пример #8
0
 /**
  * constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->set('suffix', 'shipping');
 }
Пример #9
0
 function __construct($config = array())
 {
     parent::__construct($config);
 }