function uninstall() { $query = new DB_Table_Delete(GiftCertificateApi::getTables()); }
function initQuery($params) { $tables = GiftCertificateApi::getTables(); $c = $tables['gc_list']['columns']; if (isset($params['gc_code'])) { $this->addUpdateValue($c["gc_code"], $params['gc_code']); } if (isset($params['gc_from'])) { $this->addUpdateValue($c["gc_from"], $params["gc_from"]); } if (isset($params['gc_to'])) { $this->addUpdateValue($c["gc_to"], $params["gc_to"]); } if (isset($params['gc_message'])) { $this->addUpdateValue($c["gc_message"], $params["gc_message"]); } if (isset($params['gc_amount'])) { $this->addUpdateValue($c["gc_amount"], $params["gc_amount"]); } if (isset($params['gc_remainder'])) { $this->addUpdateValue($c["gc_remainder"], $params["gc_remainder"]); } if (isset($params['gc_sendtype'])) { $this->addUpdateValue($c["gc_sendtype"], $params["gc_sendtype"]); } if (isset($params['gc_status'])) { $this->addUpdateValue($c["gc_status"], $params["gc_status"]); } if (isset($params['gc_fname'])) { $this->addUpdateValue($c["gc_fname"], $params["gc_fname"]); } if (isset($params['gc_lname'])) { $this->addUpdateValue($c["gc_lname"], $params["gc_lname"]); } if (isset($params['gc_email'])) { $this->addUpdateValue($c["gc_email"], $params["gc_email"]); } if (isset($params['gc_address'])) { $this->addUpdateValue($c["gc_address"], $params["gc_address"]); } if (isset($params['gc_city'])) { $this->addUpdateValue($c["gc_city"], $params["gc_city"]); } if (isset($params['gc_state_id'])) { $this->addUpdateValue($c["gc_state_id"], $params["gc_state_id"]); } if (isset($params['gc_country_id'])) { $this->addUpdateValue($c["gc_country_id"], $params["gc_country_id"]); } if (isset($params['gc_zip'])) { $this->addUpdateValue($c["gc_zip"], $params["gc_zip"]); } if (isset($params['gc_phone'])) { $this->addUpdateValue($c["gc_phone"], $params["gc_phone"]); } if (isset($params['gc_purchased_order_id'])) { $this->addUpdateValue($c["gc_purchased_order_id"], $params["gc_purchased_order_id"]); } $this->WhereValue($c['gc_id'], DB_EQ, $params["gc_id"]); }