?
Path : /home/admin/public_html/old/administrator/components/com_xijc/tables/ |
Current File : /home/admin/public_html/old/administrator/components/com_xijc/tables/whitelist.php |
<?php // Disallow direct access to this file defined('_JEXEC') or die('Restricted access'); class XiJCTableWhitelist extends JTable { var $id = null; var $option = null; var $rulename = null; var $enable = null; var $params = null; function __construct(&$db) { parent::__construct('#__xijc_whitelist', 'id' , $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( $id) { if( $id ){ return parent::load( $id ); } $this->id = 0; $this->option = ''; $this->rulename = ''; $this->enable = 1; $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( ) { parent::store(); return $this->id; } function bindValues($data) { $this->option = $data->option; $this->rulename = $data->rulename; $this->enable = $data->enable; $this->params = $data->params; } }