Пример #1
0
 function initQuery($params)
 {
     $tables = Taxes::getTables();
     $c = $tables["tax_rates"]["columns"];
     $this->addSelectField($c['id'], 'id');
     $this->WhereValue($c['rates_set'], DB_EQ, $params['sid']);
 }
Пример #2
0
 /**
  * Installs the specified module in the system.
  *
  * The uninstall() method is called statically.
  * To call other methods of this class from this method,
  * the static call is used, for example,
  * News::getTables() instead of $this->getTables()
  */
 function uninstall()
 {
     global $application;
     $query = new DB_Table_Delete(Taxes::getTables());
     $application->db->getDB_Result($query);
 }