示例#1
0
 /**
  * constructor
  */
 function __construct()
 {
     $app = JFactory::getApplication();
     $values = $app->input->getArray($_POST);
     parent::__construct();
     F0FModel::addIncludePath(JPATH_SITE . '/plugins/j2store/' . $this->_element . '/' . $this->_element . '/models');
     F0FModel::addTablePath(JPATH_SITE . '/plugins/j2store/' . $this->_element . '/' . $this->_element . '/tables');
     JFactory::getLanguage()->load('plg_j2store_' . $this->_element, JPATH_ADMINISTRATOR);
     $this->registerTask('newMethod', 'newMethod');
     $this->registerTask('apply', 'save');
 }
 protected function includeCustomTables()
 {
     // Include the custom table
     F0FModel::addTablePath(JPATH_SITE . '/plugins/j2store/' . $this->_element . '/' . $this->_element . '/tables');
     JFactory::getApplication()->triggerEvent('includeCustomTables', array());
 }
示例#3
0
 /**
  * add a user-defined table to list of available tables (including the j2store tables
  * @param $plugin the name of the plugin in which the table is stored
  * @param $group the group of the plugin
  */
 protected function includeCustomTables($plugin = '', $group = 'j2store')
 {
     if (empty($plugin)) {
         $plugin = $this->_element;
     }
     $this->includeJ2StoreTables();
     $customPath = JPATH_SITE . '/plugins/' . $group . '/' . $plugin . '/' . $plugin . '/tables';
     F0FModel::addTablePath($customPath);
     //F0FTable::addIncludePath($customPath);
 }