/** * Constructor. Sets the connection, the database name and other default values. * Also sets the transaction type. * @param object KT_Connection &$connection the connection object * @access public */ function tNG_insert(&$connection) { parent::tNG_fields($connection); $this->transactionType = '_insert'; $this->exportRecordset = true; $this->registerTrigger("ERROR", "Trigger_Default_Insert_RollBack", 99); }
/** * Constructor. Sets the connection, the database name and other default values. * Also sets the transaction type. * @param object KT_Connection &$connection the connection object * @access public */ function tNG_custom(&$connection) { parent::tNG_fields($connection); $this->transactionType = '_custom'; $this->setTable("custom"); $this->exportRecordset = true; }
/** * Constructor. Sets the connection, the database name and other default values. * Also sets the transaction type. * @param object KT_Connection &$connection the connection object * @access public */ function tNG_update(&$connection) { parent::tNG_fields($connection); $this->transactionType = '_update'; $this->exportRecordset = true; $this->registerTrigger("BEFORE", "Trigger_Default_saveData", -1); }
/** * Constructor. Sets the connection, the database name and other default values. * Also sets the transaction type. * @param object KT_Connection &$connection the connection object * @access public */ function tNG_delete(&$connection) { parent::tNG_fields($connection); $this->transactionType = '_delete'; $this->registerTrigger("BEFORE", "Trigger_Default_saveData", -1); }