Changeset 27221
- Timestamp:
- Feb 5, 2014, 9:15:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_plugins.inc.php
r26846 r27221 36 36 * Used to declare maintenance methods of a plugin. 37 37 */ 38 abstractclass PluginMaintain38 class PluginMaintain 39 39 { 40 40 /** @var string $plugin_id */ … … 53 53 * @param array &$errors - used to return error messages 54 54 */ 55 abstract function install($plugin_version, &$errors=array());55 function install($plugin_version, &$errors=array()) {} 56 56 57 57 /** … … 59 59 * @param array &$errors - used to return error messages 60 60 */ 61 abstract function activate($plugin_version, &$errors=array());62 63 abstract function deactivate();64 65 abstract function uninstall();61 function activate($plugin_version, &$errors=array()) {} 62 63 function deactivate() {} 64 65 function uninstall() {} 66 66 67 67 /** … … 105 105 * Used to declare maintenance methods of a theme. 106 106 */ 107 abstractclass ThemeMaintain107 class ThemeMaintain 108 108 { 109 109 /** @var string $theme_id */ … … 122 122 * @param array &$errors - used to return error messages 123 123 */ 124 abstract function activate($theme_version, &$errors=array());125 126 abstract function deactivate();127 128 abstract function delete();124 function activate($theme_version, &$errors=array()) {} 125 126 function deactivate() {} 127 128 function delete() {} 129 129 130 130 /** … … 399 399 if (count($clauses)) 400 400 { 401 401 $query .= ' 402 402 WHERE '. implode(' AND ', $clauses); 403 403 } 404 405 $result = pwg_query($query); 406 $plugins = array(); 407 while ($row = pwg_db_fetch_assoc($result)) 408 { 409 $plugins[] = $row; 410 } 411 return $plugins; 404 405 return query2array($query); 412 406 } 413 407
Note: See TracChangeset
for help on using the changeset viewer.