示例#1
0
 /**
  * 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);
 }
示例#2
0
 /**
  * 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;
 }
示例#3
0
 /**
  * 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);
 }
示例#4
0
 /**
  * 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);
 }