Exemplo n.º 1
0
 function initQuery($params)
 {
     $tables = ColorSwatch::getTables();
     $colsel = $tables['color_swatch']['columns'];
     $this->addSelectField($colsel['id'], 'id');
     $this->addSelectField($colsel['product_id'], 'product_id');
     $this->addSelectField($colsel['name'], 'name');
     $this->addSelectField($colsel['main_image'], 'main_image');
     $this->addSelectField($colsel['checked_image'], 'checked_image');
     $this->addSelectField($colsel['label_text'], 'label_text');
     $this->addSelectField($colsel['number_of_colors'], 'number_of_colors');
     $this->WhereValue($colsel['id'], DB_EQ, $params['id']);
 }
 /**
  * Deinstalls the module.
  *
  * The uninstall() method is called statically.
  * To call other methods of this class from this method,
  * the static call is used, for example,
  * ColorSwatch::getTables() instead of $this->getTables().
  *
  * @todo finish the functions on this page
  */
 function uninstall()
 {
     $query = new DB_Table_Delete(ColorSwatch::getTables());
     global $application;
     $application->db->getDB_Result($query);
 }