PATH:
home
/
sparklp6
/
public_html
/
sparklerfilters-org
/
administrator
/
components
/
com_j2store
/
library
<?php /** * @package J2Store * @copyright Copyright (c)2014-17 Ramesh Elamathi / J2Store.org * @license GNU GPL v3 or later */ // No direct access to this file defined('_JEXEC') or die; class J2StoreControllerShippingPlugin extends F0FController { // the same as the plugin's one! var $_element = ''; /** * Overrides the getView method, adding the plugin's layout path */ public function getView( $name = '', $type = '', $prefix = '', $config = array() ){ $view = parent::getView( $name, $type, $prefix, $config ); $view->addTemplatePath(JPATH_SITE.'/plugins/j2store/'.$this->_element.'/'.$this->_element.'/tmpl/'); return $view; } /** * Overrides the delete method, to include the custom models and tables. */ public function delete() { $this->includeCustomModel('ShippingRates'); $this->includeCustomTables(); parent::delete(); } protected function includeCustomTables(){ // Include the custom table $dispatcher = JDispatcher::getInstance(); $dispatcher->trigger('includeCustomTables', array() ); } protected function includeCustomModel( $name ){ $dispatcher = JDispatcher::getInstance(); $dispatcher->trigger('includeCustomModel', array($name, $this->_element) ); } protected function includeJ2StoreModel( $name ){ $dispatcher = JDispatcher::getInstance(); $dispatcher->trigger('includeJ2StoreModel', array($name) ); } protected function baseLink(){ $id = JFactory::getApplication()->input->getInt('id', ''); return "index.php?option=com_j2store&view=shippings&task=view&id={$id}"; } }
[+]
calculators
[-] appmodel.php
[edit]
[-] shipping.php
[edit]
[-] shippingcontroller.php
[edit]
[-] popup.php
[edit]
[-] promotioncontroller.php
[edit]
[+]
plugins
[-] csv.php
[edit]
[+]
selectable
[+]
..
[-] promotionmodel.php
[edit]
[-] appcontroller.php
[edit]