From a25f0a04682c4c39c1947220c90af4118c713952 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Sun, 1 Feb 2015 00:01:36 +0000 Subject: Refactor classes to use namespaces, as per PSR-4. Replace GPL2 with GPL3. --- modules_v3/notes/module.php | 51 +++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 27 deletions(-) (limited to 'modules_v3/notes') diff --git a/modules_v3/notes/module.php b/modules_v3/notes/module.php index fd461a77d7..f448800e1f 100644 --- a/modules_v3/notes/module.php +++ b/modules_v3/notes/module.php @@ -1,38 +1,35 @@ . + */ /** * Class notes_WT_Module */ -class notes_WT_Module extends WT_Module implements WT_Module_Tab { +class notes_WT_Module extends Module implements ModuleTabInterface { private $facts; /** {@inheritdoc} */ public function getTitle() { - return /* I18N: Name of a module */ WT_I18N::translate('Notes'); + return /* I18N: Name of a module */ I18N::translate('Notes'); } /** {@inheritdoc} */ public function getDescription() { - return /* I18N: Description of the “Notes” module */ WT_I18N::translate('A tab showing the notes attached to an individual.'); + return /* I18N: Description of the “Notes” module */ I18N::translate('A tab showing the notes attached to an individual.'); } /** {@inheritdoc} */ @@ -60,7 +57,7 @@ class notes_WT_Module extends WT_Module implements WT_Module_Tab { onclick="jQuery('tr.row_note2').toggle();"> - + @@ -75,7 +72,7 @@ class notes_WT_Module extends WT_Module implements WT_Module_Tab { } } if (!$this->getFactsWithNotes()) { - echo '', WT_I18N::translate('There are no notes for this individual.'), ''; + echo '', I18N::translate('There are no notes for this individual.'), ''; } // New note link @@ -87,7 +84,7 @@ class notes_WT_Module extends WT_Module implements WT_Module_Tab { - + @@ -98,7 +95,7 @@ class notes_WT_Module extends WT_Module implements WT_Module_Tab { - + @@ -118,7 +115,7 @@ class notes_WT_Module extends WT_Module implements WT_Module_Tab { /** * Get all the facts for an individual which contain notes. * - * @return WT_Fact[] + * @return Fact[] */ private function getFactsWithNotes() { global $controller; -- cgit v1.3