Changeset 20431 for extensions/Piwecard/install/functions.inc.php
- Timestamp:
- Jan 27, 2013, 9:56:07 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Piwecard/install/functions.inc.php
r20202 r20431 1 1 <?php 2 /** 3 * Create the piwecard table in the database 4 * @param String name of the table 5 */ 2 6 function piwecard_db_create($table) { 3 7 $query = 'CREATE TABLE ' . $table . ' ( … … 18 22 } 19 23 24 /** 25 * Delete the piwecard table in the database 26 * @param String name of the table 27 */ 20 28 function piwecard_db_delete($table) { 21 29 $query = 'DROP TABLE ' . $table . ';'; … … 23 31 } 24 32 33 /** 34 * Update the piwecard table in the database from Piwecard version 2.3 35 * @param String old table name 36 * @param String new table name 37 */ 25 38 function piwecard_db_update_from_2_3($old_table, $new_table) { 26 39 $query = 'SELECT * FROM '.$old_table.';'; … … 49 62 } 50 63 64 /** 65 * Update the piwecard table in the database from Piwecard version 2.4.a.b3 66 * @param String table name 67 */ 51 68 function piwecard_db_update_from_2_4a_b3($table) { 52 69 $query = 'ALTER TABLE '.$table.' DROP PRIMARY KEY;'; … … 58 75 } 59 76 77 /** 78 * Create the piwecard entry in the config table of the database 79 * @param String entry name 80 */ 60 81 function piwecard_conf_create($name) { 61 82 $query = 'INSERT INTO '.CONFIG_TABLE.' (param,value,comment) VALUES ("'.$name.'","","'.ucfirst($name).' configuration");'; … … 63 84 } 64 85 86 /** 87 * Delete the piwecard entry in the config table of the database 88 * @param String entry name 89 */ 65 90 function piwecard_conf_delete($name){ 66 91 $query = 'DELETE FROM '.CONFIG_TABLE.' WHERE param="'.$name.'";'; … … 68 93 } 69 94 95 /** 96 * Rename the piwecard entry in the config table of the database 97 * @param String old name 98 * @param String new name 99 */ 70 100 function piwecard_conf_rename($old_name, $new_name){ 71 101 $query = 'UPDATE '.CONFIG_TABLE.' SET param="'.$new_name.'" WHERE param="'.$old_name.'";';
Note: See TracChangeset
for help on using the changeset viewer.