/**
  * 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_multipleDelete(&$connection)
 {
     parent::tNG_multiple($connection);
     $this->transactionType = '_multipleDelete';
 }
 /**
  * Constructor. Sets the connection, the database name and other default values.
  * Also sets the transaction type and the exportRecordset flag to true.
  * @param object KT_Connection &$connection the connection object
  * @access public
  */
 function tNG_multipleUpdate(&$connection)
 {
     parent::tNG_multiple($connection);
     $this->transactionType = '_multipleUpdate';
     $this->exportRecordset = true;
 }
Example #3
0
 /**
  * Gets the error message
  * Adds the import specific messages, then calls the parent getErrorMsg method.
  * @return string transaction error message (formatted)
  * @access public
  */
 function getErrorMsg()
 {
     $ret_warning = '';
     if (isset($this->noSkip) && $this->noSkip != 0) {
         $ret_warning = KT_getResource('IMPORT_OPERATIONS_SKIPPED', 'tNG', array($this->noSkip));
     }
     $ret = parent::getErrorMsg();
     $ret[0] .= $ret_warning;
     $ret[0] = trim($ret[0]);
     return $ret;
 }
 /**
  * Adds a column to the transaction
  * Calls the parent addColumn method then sets the default value.
  * @param string $colName The column name
  * @param string $type The column type (NUMERYC_TYPE, STRING_TYPE, etc)
  * @param string $method The request method (GET, POST, FILE, COOKIE, SESSION)
  * @param string $reference The submitted variable name (if method=GET and reference=test, value=$_GET['test'])
  * @param string $defaultValue The default value for the current column
  * @access public
  */
 function addColumn($colName, $type, $method, $reference, $defaultValue = '')
 {
     parent::addColumn($colName, $type, $method, $reference);
     if ($method == "VALUE") {
         $this->columns[$colName]['default'] = $reference;
     } else {
         $this->columns[$colName]['default'] = $defaultValue;
     }
 }