From 74768e4cea35051b346eb8009e016f71cd02d0bf Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 13 Mar 2009 22:15:16 +0000 Subject: The first incarnation of the developer tools. This allows the user to enter a module name, a description and pick the call backs and or events they want to support and generate the basic module skeleton with one click. @todo: clone a module, clone a theme, generate skeleton controller, view, --- modules/developer/views/admin_developer.html.php | 15 +++++++ modules/developer/views/developer_module.html.php | 53 +++++++++++++++++++++++ modules/developer/views/helpers.txt.php | 26 +++++++++++ modules/developer/views/installer.txt.php | 33 ++++++++++++++ modules/developer/views/module_info.txt.php | 5 +++ 5 files changed, 132 insertions(+) create mode 100644 modules/developer/views/admin_developer.html.php create mode 100644 modules/developer/views/developer_module.html.php create mode 100644 modules/developer/views/helpers.txt.php create mode 100644 modules/developer/views/installer.txt.php create mode 100644 modules/developer/views/module_info.txt.php (limited to 'modules/developer/views') diff --git a/modules/developer/views/admin_developer.html.php b/modules/developer/views/admin_developer.html.php new file mode 100644 index 00000000..eeebaa03 --- /dev/null +++ b/modules/developer/views/admin_developer.html.php @@ -0,0 +1,15 @@ + + +
+

+ +

+
+
    +
  • +
+
+ +
+
+
diff --git a/modules/developer/views/developer_module.html.php b/modules/developer/views/developer_module.html.php new file mode 100644 index 00000000..d572ecfb --- /dev/null +++ b/modules/developer/views/developer_module.html.php @@ -0,0 +1,53 @@ + + +
+ "post"), $hidden) ?> + + +
diff --git a/modules/developer/views/helpers.txt.php b/modules/developer/views/helpers.txt.php new file mode 100644 index 00000000..648015d0 --- /dev/null +++ b/modules/developer/views/helpers.txt.php @@ -0,0 +1,26 @@ + + +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2008 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class _ { + $args): ?> + static function () { + } + +} diff --git a/modules/developer/views/installer.txt.php b/modules/developer/views/installer.txt.php new file mode 100644 index 00000000..81d6d795 --- /dev/null +++ b/modules/developer/views/installer.txt.php @@ -0,0 +1,33 @@ + + +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2008 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class _installer { + static function install() { + $version = module::get_version(""); + if ($version == 0) { + /* @todo Put database creation here */ + module::set_version("", 1); + } + } + + static function uninstall() { + module::delete(""); + } +} diff --git a/modules/developer/views/module_info.txt.php b/modules/developer/views/module_info.txt.php new file mode 100644 index 00000000..4c4b4280 --- /dev/null +++ b/modules/developer/views/module_info.txt.php @@ -0,0 +1,5 @@ +name = + +description = + +version = 1 -- cgit v1.2.3