summaryrefslogtreecommitdiff
path: root/library/WT/Module
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2013-12-18 22:41:52 +0000
committerGreg Roach <fisharebest@gmail.com>2013-12-18 22:41:52 +0000
commit341dd44794fead948af3f88b8ac5f44cdd59dfaf (patch)
tree48197223f09ea77b509da0ca54df159163e78e65 /library/WT/Module
parentfbe829002dfa76c14a66dab3541e3cb42c286f7d (diff)
downloadwebtrees-341dd44794fead948af3f88b8ac5f44cdd59dfaf.tar.gz
webtrees-341dd44794fead948af3f88b8ac5f44cdd59dfaf.tar.bz2
webtrees-341dd44794fead948af3f88b8ac5f44cdd59dfaf.zip
PSR-0: each class/interface goes in a separate file
Diffstat (limited to 'library/WT/Module')
-rw-r--r--library/WT/Module/Block.php27
-rw-r--r--library/WT/Module/Chart.php23
-rw-r--r--library/WT/Module/Config.php23
-rw-r--r--library/WT/Module/Menu.php23
-rw-r--r--library/WT/Module/Report.php23
-rw-r--r--library/WT/Module/Sidebar.php26
-rw-r--r--library/WT/Module/Tab.php28
-rw-r--r--library/WT/Module/Theme.php23
8 files changed, 196 insertions, 0 deletions
diff --git a/library/WT/Module/Block.php b/library/WT/Module/Block.php
new file mode 100644
index 0000000000..d79c068056
--- /dev/null
+++ b/library/WT/Module/Block.php
@@ -0,0 +1,27 @@
+<?php
+// Classes and libraries for module system
+//
+// webtrees: Web based Family History software
+// Copyright (C) 2013 webtrees development team.
+//
+// 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+interface WT_Module_Block {
+ public function getBlock($block_id);
+ public function loadAjax();
+ public function isUserBlock();
+ public function isGedcomBlock();
+ public function configureBlock($block_id);
+}
diff --git a/library/WT/Module/Chart.php b/library/WT/Module/Chart.php
new file mode 100644
index 0000000000..dc16ceede5
--- /dev/null
+++ b/library/WT/Module/Chart.php
@@ -0,0 +1,23 @@
+<?php
+// Classes and libraries for module system
+//
+// webtrees: Web based Family History software
+// Copyright (C) 2013 webtrees development team.
+//
+// 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+interface WT_Module_Chart {
+ public function getChart();
+}
diff --git a/library/WT/Module/Config.php b/library/WT/Module/Config.php
new file mode 100644
index 0000000000..a45caecdc9
--- /dev/null
+++ b/library/WT/Module/Config.php
@@ -0,0 +1,23 @@
+<?php
+// Classes and libraries for module system
+//
+// webtrees: Web based Family History software
+// Copyright (C) 2013 webtrees development team.
+//
+// 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+interface WT_Module_Config {
+ public function getConfigLink();
+}
diff --git a/library/WT/Module/Menu.php b/library/WT/Module/Menu.php
new file mode 100644
index 0000000000..9b7bc05757
--- /dev/null
+++ b/library/WT/Module/Menu.php
@@ -0,0 +1,23 @@
+<?php
+// Classes and libraries for module system
+//
+// webtrees: Web based Family History software
+// Copyright (C) 2013 webtrees development team.
+//
+// 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+interface WT_Module_Menu {
+ public function defaultMenuOrder();
+}
diff --git a/library/WT/Module/Report.php b/library/WT/Module/Report.php
new file mode 100644
index 0000000000..9eb323029b
--- /dev/null
+++ b/library/WT/Module/Report.php
@@ -0,0 +1,23 @@
+<?php
+// Classes and libraries for module system
+//
+// webtrees: Web based Family History software
+// Copyright (C) 2013 webtrees development team.
+//
+// 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+interface WT_Module_Report {
+ public function getReportMenus();
+}
diff --git a/library/WT/Module/Sidebar.php b/library/WT/Module/Sidebar.php
new file mode 100644
index 0000000000..f97b9f660d
--- /dev/null
+++ b/library/WT/Module/Sidebar.php
@@ -0,0 +1,26 @@
+<?php
+// Classes and libraries for module system
+//
+// webtrees: Web based Family History software
+// Copyright (C) 2013 webtrees development team.
+//
+// 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+interface WT_Module_Sidebar {
+ public function defaultSidebarOrder();
+ public function getSidebarContent();
+ public function getSidebarAjaxContent();
+ public function hasSidebarContent();
+}
diff --git a/library/WT/Module/Tab.php b/library/WT/Module/Tab.php
new file mode 100644
index 0000000000..54c58d2546
--- /dev/null
+++ b/library/WT/Module/Tab.php
@@ -0,0 +1,28 @@
+<?php
+// Classes and libraries for module system
+//
+// webtrees: Web based Family History software
+// Copyright (C) 2013 webtrees development team.
+//
+// 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+interface WT_Module_Tab {
+ public function defaultTabOrder();
+ public function getTabContent();
+ public function hasTabContent();
+ public function canLoadAjax();
+ public function getPreLoadContent();
+ public function isGrayedOut();
+}
diff --git a/library/WT/Module/Theme.php b/library/WT/Module/Theme.php
new file mode 100644
index 0000000000..36e80f1296
--- /dev/null
+++ b/library/WT/Module/Theme.php
@@ -0,0 +1,23 @@
+<?php
+// Classes and libraries for module system
+//
+// webtrees: Web based Family History software
+// Copyright (C) 2013 webtrees development team.
+//
+// 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+interface WT_Module_Theme {
+ public function getTheme();
+}