?
Path : /home/admin/public_html/old/administrator/components/com_xijc/tables/ |
Current File : /home/admin/public_html/old/administrator/components/com_xijc/tables/manager.php |
<?php // Disallow direct access to this file defined('_JEXEC') or die('Restricted access'); class XiJCTableManager extends JTable { var $option = null; var $enable = null; var $params = null; function __construct(&$db) { parent::__construct('#__xijc_manager', ' ' , $db); } /** * Overrides Joomla's load method so that we can define proper values * upon loading a new entry * * @param int id The id of the field * @param boolean isGroup Whether the field is a group * * @return boolean true on success **/ function load( $option) { if( $option ){ return parent::load( $option ); } $this->option = ''; $this->enable = 0; $this->params = ''; return true; } function delete() { return parent::delete(); } /** * Overrides Joomla's JTable store method so that we can define proper values * upon saving a new entry * * @return boolean true on success **/ function store( ) { return parent::store(); } function bindValues($data) { $this->option = $data->option; $this->enable = $data->enable; $this->params = $data->params; } }