AAAAhome/academiac/www/administrator/components/com_csvi/tables/com_csvi/custom_table.php000060400000002710151457566770025347 0ustar00input; $template = $jinput->get('template', null, null); // Find which table we are importing $tbl = $template->get('custom_table'); // Find the primare key for this table $pk = CsviHelper::getPrimaryKey($tbl); parent::__construct('#__'.$tbl, $pk, $db); } /** * Reset the table fields, need to do it ourselves as the fields default is not NULL * * @copyright * @author RolandD * @todo * @see * @access public * @param * @return * @since 4.0 */ public function reset() { // Get the default values for the class from the table. foreach ($this->getFields() as $k => $v) { // If the property is not private, reset it. if (strpos($k, '_') !== 0) { $this->$k = NULL; } } } } ?>