Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…rect dependancies in version.php
  • Loading branch information...
commit dfcb478b09a2610923b29805b4d6d35a04b88c7c 1 parent 1d9f072
Dan Marsden authored
24 block_attendance.php
View
@@ -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;
}
-}
-
-?>
+}
22 lang/en/block_attendance.php
View
@@ -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';
11 lang/en_us/README
View
@@ -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.
21 lang/en_us/block_attendance.php
View
@@ -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';
2  version.php
View
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.