function __construct($table, $conn) { $this->_table = $table; parent::__construct("INSERT INTO %table% (%fields%) VALUES (%values%)", $conn); $this->_registerHint('table'); $this->_registerHint('values'); }
function __construct($table, $conn = null) { $this->_table = $table; parent::__construct("INSERT INTO %table% (%fields%) VALUES (%values%) ON DUPLICATE KEY UPDATE %new_values%", $conn); $this->_registerHint('table'); $this->_registerHint('values'); $this->_registerHint('new_values'); }