Permalink
Browse files

Tidy up old 1.9 stuff add some correct php boilerplate stuff, set cor…

…rect dependancies in version.php
  • Loading branch information...
1 parent 1d9f072 commit dfcb478b09a2610923b29805b4d6d35a04b88c7c @danmarsden committed Apr 16, 2012
Showing with 51 additions and 29 deletions.
  1. +17 −7 block_attendance.php
  2. +16 −6 lang/en/block_attendance.php
  3. +0 −11 lang/en_us/README
  4. +16 −5 lang/en_us/block_attendance.php
  5. +2 −0 version.php
View
24 block_attendance.php
@@ -1,11 +1,23 @@
-<?PHP
-
+<?php
+// This file is part of Moodle - http://moodle.org/
+//
+// Moodle 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 3 of the License, or
+// (at your option) any later version.
+//
+// Moodle 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 Moodle. If not, see <http://www.gnu.org/licenses/>.
+
class block_attendance extends block_base {
function init() {
$this->title = get_string('blockname', 'block_attendance');
- $this->version = 2011071600;
- $this->release = '2.4.0';
}
function get_content() {
@@ -88,6 +100,4 @@ private function divide_databasetable_and_coursemodule_data($alldata) {
return $ret;
}
-}
-
-?>
+}
View
22 lang/en/block_attendance.php
@@ -1,9 +1,19 @@
-<?PHP // $Id: block_attendance.php,v 1.7.2.1 2009/02/23 19:18:56 dlnsk Exp $
- // block_attendance.php - created with Moodle 1.5.3+ (2005060230)
-
+<?php
+// This file is part of Moodle - http://moodle.org/
+//
+// Moodle 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 3 of the License, or
+// (at your option) any later version.
+//
+// Moodle 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 Moodle. If not, see <http://www.gnu.org/licenses/>.
$string['blockname'] = 'Attendance';
$string['needactivity'] = 'This block can work only with an attendance activity. Please add the activity to this course.';
-$string['pluginname'] = 'Attendance';
-
-?>
+$string['pluginname'] = 'Attendance';
View
11 lang/en_us/README
@@ -1,11 +0,0 @@
-US English is only slightly different from standard English.
-
-Only a few words are changed, like :
-
- enrolment -> enrollment
- colour -> color
-
-Note that many help files and strings may be missing but this
-doesn't matter much. Because the "parent language" of this
-pack is "en", missing strings will be taken from there.
-So you should also copy en_utf8 language files.
View
21 lang/en_us/block_attendance.php
@@ -1,10 +1,21 @@
-<?PHP // $Id: block_attendance.php,v 1.1 2007/07/06 18:49:06 dlnsk Exp $
- // block_attendance.php - created with Moodle 1.5.3+ (2005060230)
+<?php
+// This file is part of Moodle - http://moodle.org/
+//
+// Moodle 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 3 of the License, or
+// (at your option) any later version.
+//
+// Moodle 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 Moodle. If not, see <http://www.gnu.org/licenses/>.
$string['strftimedm'] = '%%m.%%d';
$string['strftimedmy'] = '%%m.%%d.%%Y';
$string['strftimedmyw'] = '%%m.%%d.%%y&nbsp;(%%a)';
-$string['strftimeshortdate'] = '%%m.%%d.%%Y';
-
-?>
+$string['strftimeshortdate'] = '%%m.%%d.%%Y';
View
2 version.php
@@ -16,3 +16,5 @@
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
$plugin->version = 2011071600;
+$plugin->component = 'block_attendance';
+$plugin->dependencies = array('mod_attforblock' => ANY_VERSION);

0 comments on commit dfcb478

Please sign in to comment.