function __construct($config = array()) { parent::__construct($config); // print_r(JRequest::get('post')); exit; // Register Extra tasks $this->registerTask('add', 'display'); $this->registerTask('edit', 'display'); }
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'); }
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'); }
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); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'payment'); }
function __construct() { parent::__construct(); }
function __construct() { parent::__construct(); $this->registerTask('unsetDefault', 'setDefault'); $this->registerTask('setDefault', 'setDefault'); }
/** * constructor */ function __construct() { parent::__construct(); $this->set('suffix', 'shipping'); }
function __construct($config = array()) { parent::__construct($config); }