-<?php //$Id$
+<?php
class block_activity_modules extends block_list {
function init() {
}
}
-?>
+
-<?php //$Id$
+<?php
-// This file keeps track of upgrades to
+// This file keeps track of upgrades to
// the activity_modules block
//
// Sometimes, changes between versions involve
$dbman = $DB->get_manager();
$result = true;
-/// And upgrade begins here. For each one, you'll need one
-/// block of code similar to the next one. Please, delete
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
/// this comment lines once this file start handling proper
/// upgrade code.
return $result;
}
-?>
+
-<?php //$Id$
+<?php
class block_admin extends block_list {
function init() {
}
}
-?>
+
-<?php //$Id$
+<?php
-// This file keeps track of upgrades to
+// This file keeps track of upgrades to
// the admin block
//
// Sometimes, changes between versions involve
$dbman = $DB->get_manager();
$result = true;
-/// And upgrade begins here. For each one, you'll need one
-/// block of code similar to the next one. Please, delete
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
/// this comment lines once this file start handling proper
/// upgrade code.
return $result;
}
-?>
+
-<?php // $Id$
+<?php
// seems to work...
// maybe I should add some pretty icons?
}
}
-?>
+
-<?php // $Id$
+<?php
require('../../config.php');
}
-?>
\ No newline at end of file
-<?php // $Id$
+<?php
require('../../config.php');
die;
}
-?>
+
openalt: null,
init: function(numdivs, expandnodes, openimg, closedimg, openalt, closedalt) {
- // Store the information we were passed in.
+ // Store the information we were passed in.
admin_tree.openimg = openimg;
admin_tree.closedimg = closedimg;
admin_tree.openalt = openalt;
-<?php // $Id$
+<?php
class block_admin_tree extends block_base {
if (admin_critical_warnings_present()) {
$class .= ' criticalnotification';
}
- }
+ }
if ($content->is_hidden()) {
$class .= ' hidden';
}
-<?PHP //$Id$
+<?php
define('BLOGDEFAULTTIMEWITHIN', 90);
define('BLOGDEFAULTNUMBEROFTAGS', 20);
$this->content->text = '';
$this->content->footer = '';
- /// Get a list of tags
+ /// Get a list of tags
$timewithin = time() - $this->config->timewithin * 24 * 60 * 60; /// convert to seconds
-
+
$blogheaders = blog_get_headers();
// admins should be able to read all tags
} else if (!empty($blogheaders['filters']['course'])) {
$blogurl->param('courseid', $blogheaders['filters']['course']);
}
-
+
break;
}
}
}
-?>
+
<?php
-// This file is part of Moodle - http://moodle.org/
-//
+// 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
// 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/>.
-<?PHP //$Id$
+<?php
class block_calendar_month extends block_base {
function init() {
$cal_y = optional_param( 'cal_y', 0, PARAM_INT );
require_once($CFG->dirroot.'/calendar/lib.php');
-
+
if ($this->content !== NULL) {
return $this->content;
}
// Reset the session variables
calendar_session_vars($this->page->course);
-
+
$this->content = new stdClass;
$this->content->text = '';
$this->content->footer = '';
- // [pj] To me it looks like this if would never be needed, but Penny added it
+ // [pj] To me it looks like this if would never be needed, but Penny added it
// when committing the /my/ stuff. Reminder to discuss and learn what it's about.
// It definitely needs SOME comment here!
$courseshown = $this->page->course->id;
$this->content->text .= calendar_get_mini($courses, $group, $user, $cal_m, $cal_y);
$this->content->text .= '<h3 class="eventskey">'.get_string('eventskey', 'calendar').'</h3>';
$this->content->text .= '<div class="filters">'.calendar_filter_controls('course', '', $this->page->course).'</div>';
-
+
}
-
+
// MDL-9059, unset this so that it doesn't stay in session
if (!empty($courseset)) {
unset($SESSION->cal_courses_shown[$this->page->course->id]);
}
}
-?>
+
-<?php //$Id$
+<?php
-// This file keeps track of upgrades to
+// This file keeps track of upgrades to
// the calendar_month block
//
// Sometimes, changes between versions involve
$dbman = $DB->get_manager();
$result = true;
-/// And upgrade begins here. For each one, you'll need one
-/// block of code similar to the next one. Please, delete
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
/// this comment lines once this file start handling proper
/// upgrade code.
return $result;
}
-?>
+
-<?PHP //$Id$
+<?php
class block_calendar_upcoming extends block_base {
function init() {
$this->content->footer .= '<br /><a href="'.$CFG->wwwroot.
'/calendar/event.php?action=new&course='.$courseshown.'">'.
get_string('newevent', 'calendar').'</a>...';
- }
+ }
if ($courseshown == SITEID) {
// Being displayed at site level. This will cause the filter to fall back to auto-detecting
// the list of courses it will be grabbing events from.
// Correct formatting is [courseid] => 1 to be concise with moodlelib.php functions.
calendar_set_filters($courses, $group, $user, $filtercourse, $groupeventsfrom, false);
- $events = calendar_get_upcoming($courses, $group, $user,
- get_user_preferences('calendar_lookahead', CALENDAR_UPCOMING_DAYS),
+ $events = calendar_get_upcoming($courses, $group, $user,
+ get_user_preferences('calendar_lookahead', CALENDAR_UPCOMING_DAYS),
get_user_preferences('calendar_maxevents', CALENDAR_UPCOMING_MAXEVENTS));
- if (!empty($this->instance)) {
- $this->content->text = calendar_get_sideblock_upcoming($events,
+ if (!empty($this->instance)) {
+ $this->content->text = calendar_get_sideblock_upcoming($events,
'view.php?view=day&course='.$courseshown.'&');
}
}
}
-?>
+
-<?php //$Id$
+<?php
-// This file keeps track of upgrades to
+// This file keeps track of upgrades to
// the calendar_upcoming block
//
// Sometimes, changes between versions involve
$dbman = $DB->get_manager();
$result = true;
-/// And upgrade begins here. For each one, you'll need one
-/// block of code similar to the next one. Please, delete
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
/// this comment lines once this file start handling proper
/// upgrade code.
return $result;
}
-?>
+
-<?PHP //$Id$
+<?php
include_once($CFG->dirroot . '/course/lib.php');
$this->title = get_string('courses');
$this->version = 2007101509;
}
-
+
function has_config() {
return true;
}
$icon = "<img src=\"" . $OUTPUT->old_icon_url('i/course') . "\"".
" class=\"icon\" alt=\"".get_string("coursecategory")."\" />";
-
+
$adminseesall = true;
if (isset($CFG->block_course_list_adminview)) {
if ( $CFG->block_course_list_adminview == 'own'){
}
}
- if (empty($CFG->disablemycourses) and
- !empty($USER->id) and
+ if (empty($CFG->disablemycourses) and
+ !empty($USER->id) and
!(has_capability('moodle/course:update', get_context_instance(CONTEXT_SYSTEM)) and $adminseesall) and
!isguestuser()) { // Just print My Courses
if ($courses = get_my_courses($USER->id, 'visible DESC, fullname ASC')) {
$this->content->items[]="<a $linkcss title=\""
. format_string($course->shortname)."\" ".
- "href=\"$CFG->wwwroot/course/view.php?id=$course->id\">"
+ "href=\"$CFG->wwwroot/course/view.php?id=$course->id\">"
. format_string($course->fullname) . "</a>";
$this->content->icons[]=$icon;
}
}
$this->get_remote_courses();
} else {
-
+
$this->content->icons[] = '';
$this->content->items[] = get_string('nocoursesyet');
if (has_capability('moodle/course:create', get_context_instance(CONTEXT_COURSECAT, $category->id))) {
$this->content->icons[] = '';
foreach ($courses as $course) {
$this->content->items[]="<a title=\"" . format_string($course->shortname) . "\" ".
- "href=\"{$CFG->wwwroot}/auth/mnet/jump.php?hostid={$course->hostid}&wantsurl=/course/view.php?id={$course->remoteid}\">"
+ "href=\"{$CFG->wwwroot}/auth/mnet/jump.php?hostid={$course->hostid}&wantsurl=/course/view.php?id={$course->remoteid}\">"
. format_string($course->fullname) . "</a>";
$this->content->icons[]=$icon;
}
}
if ($hosts = get_my_remotehosts()) {
- $this->content->items[] = get_string('remotemoodles','mnet');
+ $this->content->items[] = get_string('remotemoodles','mnet');
$this->content->icons[] = '';
foreach($USER->mnet_foreign_host_array as $somehost) {
$this->content->items[] = $somehost['count'].get_string('courseson','mnet').'<a title="'.$somehost['name'].'" href="'.$somehost['url'].'">'.$somehost['name'].'</a>';
}
-?>
+
-<?php //$Id$
+<?php
-// This file keeps track of upgrades to
+// This file keeps track of upgrades to
// the course_list block
//
// Sometimes, changes between versions involve
$dbman = $DB->get_manager();
$result = true;
-/// And upgrade begins here. For each one, you'll need one
-/// block of code similar to the next one. Please, delete
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
/// this comment lines once this file start handling proper
/// upgrade code.
return $result;
}
-?>
+
-<?php //$Id$
+<?php
$options = array('all'=>get_string('allcourses', 'block_course_list'), 'own'=>get_string('owncourses', 'block_course_list'));
get_string('confighideallcourseslink', 'block_course_list'), 0));
-?>
+
-<?PHP //$Id$
+<?php
class block_course_summary extends block_base {
function init() {
}
-?>
+
-<?php //$Id$
+<?php
-// This file keeps track of upgrades to
+// This file keeps track of upgrades to
// the course_summary block
//
// Sometimes, changes between versions involve
$dbman = $DB->get_manager();
$result = true;
-/// And upgrade begins here. For each one, you'll need one
-/// block of code similar to the next one. Please, delete
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
/// this comment lines once this file start handling proper
/// upgrade code.
return $result;
}
-?>
+
<?php
-// This file is part of Moodle - http://moodle.org/
-//
+// 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
// 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/>.
$this->page->requires->js_function_call('setup_new_navtree', array($this->id))->on_dom_ready();
// Grab the items to display
$this->content->items = array($this->page->navigation);
-
+
$reloadicon = new moodle_action_icon();
$reloadicon->link->url = $this->page->url;
$reloadicon->link->url->param('regenerate','navigation');
$reloadicon->alt = get_string('reload');
$reloadicon->title = get_string('reload');
$this->content->footer .= $OUTPUT->action_icon($reloadicon);
-
+
if (empty($this->config->enablesidebarpopout) || $this->config->enablesidebarpopout == 'yes') {
user_preference_allow_ajax_update('nav_in_tab_panel_globalnav'.block_global_navigation_tree::$navcount, PARAM_INT);
-
+
$moveicon = new moodle_action_icon();
$moveicon->link->add_classes('moveto customcommand requiresjs');
$moveicon->link->url = $this->page->url;
-<?php // $Id$
+<?php
define('BGR_RANDOMLY', '0');
define('BGR_LASTMODIFIED', '1');
$text = '';
} else {
$text = "<h3>".format_string($entry->concept,true)."</h3>";
- }
+ }
$options = new object;
$options->trusted = $entry->definitiontrust;
.'" title="'.$this->config->addentry.'">'.$this->config->addentry.'</a><br />';
} else {
$this->content->footer = '';
- }
-
+ }
+
$this->content->footer .= '<a href="'.$CFG->wwwroot.'/mod/glossary/view.php?id='.$cm->id
.'" title="'.$this->config->viewglossary.'">'.$this->config->viewglossary.'</a>';
}
}
-?>
+
<?php
-// This file is part of Moodle - http://moodle.org/
-//
+// 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
// 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/>.
-<?php //$Id$
+<?php
class block_html extends block_base {
/**
* This function makes all the necessary calls to {@link restore_decode_content_links_worker()}
- * function in order to decode contents of this block from the backup
- * format to destination site/course in order to mantain inter-activities
- * working in the backup/restore process.
- *
+ * function in order to decode contents of this block from the backup
+ * format to destination site/course in order to mantain inter-activities
+ * working in the backup/restore process.
+ *
* This is called from {@link restore_decode_content_links()} function in the restore process.
*
* NOTE: There is no block instance when this method is called.
$sql = "SELECT bi.*
FROM {block_instance} bi
JOIN {block} b ON b.id = bi.blockid
- WHERE b.name = 'html' AND bi.id IN ($restored_blocks)";
+ WHERE b.name = 'html' AND bi.id IN ($restored_blocks)";
if ($instances = $DB->get_records_sql($sql)) {
foreach ($instances as $instance) {
return true;
}
}
-?>
+
<?php
-// This file is part of Moodle - http://moodle.org/
-//
+// 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
// 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/>.
-<?php // $Id$
+<?php
class block_loancalc extends block_base {
global $CFG, $OUTPUT;
$calc = $OUTPUT->old_icon_url('i/calc');
-
+
$this->content->text = '
<script type="text/javascript">
// <![CDATA[
<tr>
<td><input name="LOANTERM" id="LOANTERM" size="17" /></td>
<td><a href="JavaScript:comp(\'np\');"><img src="'.$calc.'" alt="calculate" /></a></td>
- </tr>
+ </tr>
<tr>
<td colspan="2">'.get_string('interestrate','block_loancalc').'</td>
</tr>
<tr>
<td><input name="LOANINTRATE" id="LOANINTRATE" size="17" /></td>
<td></td>
- </tr>
+ </tr>
<tr>
<td colspan="2">'.get_string('repaymentfreq','block_loancalc').'</td>
</tr>
}
}
-?>
+
-<?PHP //$Id$
+<?php
class block_login extends block_base {
function init() {
$this->title = get_string('login');
- $this->version = 2007101509;
+ $this->version = 2007101509;
}
function applicable_formats() {
// in unencrypted connection...
$wwwroot = str_replace("http://", "https://", $CFG->wwwroot);
}
-
+
if (!empty($CFG->registerauth)) {
$authplugin = get_auth_plugin($CFG->registerauth);
if ($authplugin->can_signup()) {
}
}
-?>
+
AND ra.contextid = c.id
AND c.instanceid = u.id
AND c.contextlevel = ".CONTEXT_USER, array($USER->id))) {
-
+
$this->content->text = '<ul>';
foreach ($usercontexts as $usercontext) {
- $this->content->text .= '<li><a href="'.$CFG->wwwroot.'/user/view.php?id='.$usercontext->instanceid.'&course=1">'.fullname($usercontext).'</a></li>';
+ $this->content->text .= '<li><a href="'.$CFG->wwwroot.'/user/view.php?id='.$usercontext->instanceid.'&course=1">'.fullname($usercontext).'</a></li>';
}
$this->content->text .= '</ul>';
}
return $this->content;
}
}
-?>
+
<?php
-// This file is part of Moodle - http://moodle.org/
-//
+// 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
// 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/>.
-<?PHP //$Id$
+<?php
class block_messages extends block_base {
function init() {
if ($this->page->user_is_editing()) {
$this->content->text = get_string('disabled', 'message');
}
- return $this->content;
+ return $this->content;
}
if ($this->content !== NULL) {
$users = $DB->get_records_sql("SELECT m.useridfrom AS id, COUNT(m.useridfrom) AS count,
u.firstname, u.lastname, u.picture, u.imagealt, u.lastaccess
- FROM {user} u, {message} m
+ FROM {user} u, {message} m
WHERE m.useridto = ? AND u.id = m.useridfrom
GROUP BY m.useridfrom, u.firstname,u.lastname,u.picture,u.lastaccess,u.imagealt", array($USER->id));
$this->content->text .= '<div class="message"><a href="'.$CFG->wwwroot.'/message/discussion.php?id='.$user->id.'" onclick="this.target=\'message_'.$user->id.'\'; return openpopup(\'/message/discussion.php?id='.$user->id.'\', \'message_'.$user->id.'\', \'menubar=0,location=0,scrollbars,status,resizable,width=400,height=500\', 0);"><img class="iconsmall" src="'.$OUTPUT->old_icon_url('t/message') . '" alt="" /> '.$user->count.'</a>';
$this->content->text .= '</div></li>';
}
- $this->content->text .= '</ul>';
+ $this->content->text .= '</ul>';
} else {
$this->content->text .= '<div class="info">';
$this->content->text .= get_string('nomessages', 'message');
- $this->content->text .= '</div>';
+ $this->content->text .= '</div>';
}
return $this->content;
}
}
-?>
+
-<?PHP //$Id$
+<?php
class block_mnet_hosts extends block_list {
function init() {
// TODO: Test this query - it's appropriate? It works?
// get the hosts and whether we are doing SSO with them
$sql = "
- SELECT DISTINCT
- h.id,
+ SELECT DISTINCT
+ h.id,
h.name,
h.wwwroot,
a.name as application,
a.display_name
- FROM
+ FROM
{mnet_host} h,
{mnet_application} a,
{mnet_host2service} h2s_IDP,
}
}
-?>
+
<?php
-// This file is part of Moodle - http://moodle.org/
-//
+// 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
// 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/>.
*/
var $config = NULL;
- /**
+ /**
* How often the cronjob should run, 0 if not at all.
* @var int $cron
*/
function __construct() {
$this->block_base();
}
-
+
/**
* Function that can be overridden to do extra cleanup before
* the database tables are deleted. (Called once per block, not per instance!)
*/
function before_delete() {
}
-
+
/**
* Function that can be overridden to do extra setup after a block instance has been
* restored from backup. For example, it may need to alter any dates that the block
- * stores, if the $restore->course_startdateoffset is set.
+ * stores, if the $restore->course_startdateoffset is set.
*/
function after_restore($restore) {
}
/**
* Enable custom instance data section in backup and restore.
- *
+ *
* If return true, then {@link instance_backup()} and
* {@link instance_restore()} will be called during
* backup/restore routines.
}
/**
- * Allows the block class to have a backup routine. Handy
- * when the block has its own tables that have foreign keys to
+ * Allows the block class to have a backup routine. Handy
+ * when the block has its own tables that have foreign keys to
* other tables (example: user table).
- *
- * Note: at the time of writing this comment, the indent level
+ *
+ * Note: at the time of writing this comment, the indent level
* for the {@link full_tag()} should start at 5.
*
* @param resource $bf Backup File
/**
* Allows the block class to restore its backup routine.
- *
- * Should not return false if data is empty
+ *
+ * Should not return false if data is empty
* because old backups would not contain block instance backup data.
- *
+ *
* @param object $restore Standard restore object
* @param object $data Object from backup_getid for this block instance
* @return boolean
/**
* This function makes all the necessary calls to {@link restore_decode_content_links_worker()}
- * function in order to decode contents of this block from the backup
- * format to destination site/course in order to mantain inter-activities
- * working in the backup/restore process.
- *
+ * function in order to decode contents of this block from the backup
+ * format to destination site/course in order to mantain inter-activities
+ * working in the backup/restore process.
+ *
* This is called from {@link restore_decode_content_links()} function in the restore process.
*
* NOTE: There is no block instance when this method is called.
/**
* Returns the class $title var value.
*
- * Intentionally doesn't check if a title is set.
+ * Intentionally doesn't check if a title is set.
* This is already done in {@link _self_test()}
*
* @return string $this->title
/**
* Returns the class $content_type var value.
*
- * Intentionally doesn't check if content_type is set.
+ * Intentionally doesn't check if content_type is set.
* This is already done in {@link _self_test()}
*
* @return string $this->content_type
/**
* Returns the class $version var value.
*
- * Intentionally doesn't check if a version is set.
+ * Intentionally doesn't check if a version is set.
* This is already done in {@link _self_test()}
*
* @return string $this->version
*
* @return boolean
*/
-
+
function _self_test() {
// Tests if this block has been implemented correctly.
// Also, $errors isn't used right now
$errors[] = 'invalid_content_type';
$correct = false;
}
- //following selftest was not working when roles&capabilities were used from block
+ //following selftest was not working when roles&capabilities were used from block
/* if ($this->get_content() === NULL) {
$errors[] = 'content_not_set';
$correct = false;
}
return true;
}
-
+
/**
* Which page types this block may appear on.
*
// Default case: the block can be used in courses and site index, but not in activities
return array('all' => true, 'mod' => false, 'tag' => false);
}
-
+
/**
* Default return is false - header will be shown
*/
function html_attributes() {
return array(
- 'id' => 'inst' . $this->instance->id,
+ 'id' => 'inst' . $this->instance->id,
'class' => 'block_' . $this->name()
);
}
/**
* Set up a particular instance of this class given data from the block_insances
- * table and the current page. (See {@link block_manager::load_blocks()}.)
+ * table and the current page. (See {@link block_manager::load_blocks()}.)
*
* @param stdClass $instance data from block_insances, block_positions, etc.
* @param moodle_page $the page this block is on.
/** @callback callback functions for comments api */
public static function comment_template($options) {
$ret = <<<EOD
-<div class="comment-userpicture">___picture___</div>
+<div class="comment-userpicture">___picture___</div>
<div class="comment-content">
___name___ - <span>___time___</span>
<div>___content___</div>
/**
* Specialized class for displaying a tree menu.
- *
+ *
* The {@link get_content()} method involves setting the content of
* <code>$this->content->items</code> with an array of {@link tree_item}
* objects (these are the top-level nodes). The {@link tree_item::children}
* property may contain more tree_item objects, and so on. The tree_item class
* itself is abstract and not intended for use, use one of it's subclasses.
- *
+ *
* Unlike {@link block_list}, the icons are specified as part of the items,
* not in a separate array.
*
* @internal this extends block_list so we get is_empty() for free
*/
class block_tree extends block_list {
-
+
/**
* @var int specifies the manner in which contents should be added to this
* block type. In this case <code>$this->content->items</code> is used with
* {@link tree_item}s.
*/
public $content_type = BLOCK_TYPE_TREE;
-
+
/**
* Make the formatted HTML ouput.
- *
+ *
* Also adds the required javascript call to the page output.
*
* @param moodle_core_renderer $output
-<?PHP //$Id$
+<?php
class block_news_items extends block_base {
function init() {
/// Get all the recent discussions we're allowed to see
- if (! $discussions = forum_get_discussions($cm, 'p.modified DESC', false,
+ if (! $discussions = forum_get_discussions($cm, 'p.modified DESC', false,
$currentgroup, $this->page->course->newsitems) ) {
$text .= '('.get_string('nonews', 'forum').')';
$this->content->text = $text;
}
}
-?>
+
-<?php //$Id$
+<?php
-// This file keeps track of upgrades to
+// This file keeps track of upgrades to
// the news_items block
//
// Sometimes, changes between versions involve
$dbman = $DB->get_manager();
$result = true;
-/// And upgrade begins here. For each one, you'll need one
-/// block of code similar to the next one. Please, delete
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
/// this comment lines once this file start handling proper
/// upgrade code.
return $result;
}
-?>
+
-<?php //$Id$
+<?php
/**
* This block needs to be reworked.
$timeago = format_time(time() - $user->lastaccess); //bruno to calculate correctly on frontpage
$userpic = moodle_user_picture::make($user, $this->page->course->id);
$userpic->size = 16;
-
+
if ($user->username == 'guest') {
$this->content->text .= '<div class="user">'.$OUTPUT->user_picture($userpic);
$this->content->text .= get_string('guestuser').'</div>';
}
}
-?>
+
-<?php // $Id$
+<?php
///////////////////////////////////////////////////////////////////////////
// //
)
);
-?>
+
-<?php //$Id$
+<?php
-// This file keeps track of upgrades to
+// This file keeps track of upgrades to
// the online_users block
//
// Sometimes, changes between versions involve
$dbman = $DB->get_manager();
$result = true;
-/// And upgrade begins here. For each one, you'll need one
-/// block of code similar to the next one. Please, delete
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
/// this comment lines once this file start handling proper
/// upgrade code.
return $result;
}
-?>
+
-<?php //$Id$
+<?php
$settings->add(new admin_setting_configtext('block_online_users_timetosee', get_string('timetosee', 'block_online_users'),
get_string('configtimetosee', 'block_online_users'), 5, PARAM_INT));
-?>
+
-<?PHP //$Id$
+<?php
class block_participants extends block_list {
function init() {
}
-?>
+
-<?php //$Id$
+<?php
-// This file keeps track of upgrades to
+// This file keeps track of upgrades to
// the participants block
//
// Sometimes, changes between versions involve
$dbman = $DB->get_manager();
$result = true;
-/// And upgrade begins here. For each one, you'll need one
-/// block of code similar to the next one. Please, delete
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
/// this comment lines once this file start handling proper
/// upgrade code.
return $result;
}
-?>
+
-<?php //$Id$
+<?php
define('B_QUIZRESULTS_NAME_FORMAT_FULL', 1);
define('B_QUIZRESULTS_NAME_FORMAT_ID', 2);
}
}
-?>
+
<?php
-// This file is part of Moodle - http://moodle.org/
-//
+// 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
// 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/>.
text-align: center;
}
-.block_quiz_results table.grades .number,
+.block_quiz_results table.grades .number,
.block_quiz_results table.grades .grade {
text-align: right;
width: 10%;
-<?PHP //$Id$
+<?php
class block_recent_activity extends block_base {
function init() {
return array('all' => true, 'my' => false, 'tag' => false);
}
}
-?>
+
-<?php //$Id$
+<?php
-// This file keeps track of upgrades to
+// This file keeps track of upgrades to
// the recent_activity block
//
// Sometimes, changes between versions involve
$dbman = $DB->get_manager();
$result = true;
-/// And upgrade begins here. For each one, you'll need one
-/// block of code similar to the next one. Please, delete
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
/// this comment lines once this file start handling proper
/// upgrade code.
return $result;
}
-?>
+
-<?php
+<?php
// This file is part of Moodle - http://moodle.org/
//
}
/**
- * cron - goes through all feeds and retrieves them with the cache
+ * cron - goes through all feeds and retrieves them with the cache
* duration set to 0 in order to force the retrieval of the item and
* refresh the cache
*
@set_time_limit(60);
$feed = new moodle_simplepie();
- // set timeout for longer than normal to be agressive at
+ // set timeout for longer than normal to be agressive at
// fetching feeds if possible..
$feed->set_timeout(40);
$feed->set_cache_duration(0);
}
}
-?>
+
-<?php //$Id$
+<?php
-// This file keeps track of upgrades to
+// This file keeps track of upgrades to
// the rss_client block
//
// Sometimes, changes between versions involve
$dbman = $DB->get_manager();
$result = true;
-/// And upgrade begins here. For each one, you'll need one
-/// block of code similar to the next one. Please, delete
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
/// this comment lines once this file start handling proper
/// upgrade code.
return $result;
}
-?>
+
<?php
-// This file is part of Moodle - http://moodle.org/
-//
+// 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
// 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/>.
<?php
-// This file is part of Moodle - http://moodle.org/
-//
+// 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
// 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/>.
}
/**
- * Autodiscovers a feed url from a given url, to be used by the formslibs
+ * Autodiscovers a feed url from a given url, to be used by the formslibs
* filter function
*
* Uses simplepie with autodiscovery set to maximum level to try and find
-<?php
+<?php
$settings->add(new admin_setting_configtext('block_rss_client_num_entries', get_string('numentries', 'block_rss_client'),
get_string('clientnumentries', 'block_rss_client'), 5, PARAM_INT));
<?php
-// This file is part of Moodle - http://moodle.org/
-//
+// 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
// 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/>.
<b><?php print_string('configsearchtext', 'block_search') ?>:</b>
</td>
<td valign="top" align="left">
- <input id="block_search_text" type="text" name="block_search_text" value="<?php
+ <input id="block_search_text" type="text" name="block_search_text" value="<?php
if(isset($CFG->block_search_text)) {
p($CFG->block_search_text);
} else {
<b><?php print_string('configbuttonlabel', 'block_search') ?>:</b>
</td>
<td valign="top" align="left">
- <input id="block_search_button" type="text" name="block_search_button" value="<?php
+ <input id="block_search_button" type="text" name="block_search_button" value="<?php
if(isset($CFG->block_search_button)) {
p($CFG->block_search_button);
} else {
<b><?php print_string('configenablefileindexing', 'block_search') ?>:</b>
</td>
<td valign="top" align="left">
- <input id="block_enable_file_indexing" type="radio" name="block_search_enable_file_indexing" value="1" <?php
+ <input id="block_enable_file_indexing" type="radio" name="block_search_enable_file_indexing" value="1" <?php
if(isset($CFG->block_search_enable_file_indexing) && $CFG->block_search_enable_file_indexing) {
echo " checked=\"checked\" ";
- } ?> /> <?php print_string('yes') ?> -
- <input id="block_search_enable_file_indexing" type="radio" name="block_search_enable_file_indexing" value="0" <?php
+ } ?> /> <?php print_string('yes') ?> -
+ <input id="block_search_enable_file_indexing" type="radio" name="block_search_enable_file_indexing" value="0" <?php
if(!isset($CFG->block_search_enable_file_indexing) || !$CFG->block_search_enable_file_indexing) {
echo " checked=\"checked\" ";
} ?> /> <?php print_string('no') ?>
<b><?php print_string('configfiletypes', 'block_search') ?>:</b>
</td>
<td valign="top" align="left">
- <input id="block_search_filetypes" type="text" name="block_search_filetypes" value="<?php
+ <input id="block_search_filetypes" type="text" name="block_search_filetypes" value="<?php
if(!isset($CFG->block_search_filetypes)) {
$CFG->block_search_filetypes = $defaultfiletypes;
- }
+ }
p($CFG->block_search_filetypes);
?>" />
<br/><br/>
<b><?php print_string('usemoodleroot', 'block_search') ?>:</b>
</td>
<td valign="top" align="left">
- <?php
- $usemoodleroot = (isset($CFG->block_search_usemoodleroot)) ? 'checked="checked"' : '' ;
- $notusemoodleroot = (!isset($CFG->block_search_usemoodleroot)) ? 'checked="checked"' : '' ;
+ <?php
+ $usemoodleroot = (isset($CFG->block_search_usemoodleroot)) ? 'checked="checked"' : '' ;
+ $notusemoodleroot = (!isset($CFG->block_search_usemoodleroot)) ? 'checked="checked"' : '' ;
?>
- <input id="block_search_usemoodleroot" type="radio" name="block_search_usemoodleroot" <?php echo $usemoodleroot ?> value="1"/> <?php print_string('yes') ?> -
- <input id="block_search_usemoodleroot" type="radio" name="block_search_usemoodleroot" <?php echo $notusemoodleroot ?> value="0"/> <?php print_string('no') ?>
+ <input id="block_search_usemoodleroot" type="radio" name="block_search_usemoodleroot" <?php echo $usemoodleroot ?> value="1"/> <?php print_string('yes') ?> -
+ <input id="block_search_usemoodleroot" type="radio" name="block_search_usemoodleroot" <?php echo $notusemoodleroot ?> value="0"/> <?php print_string('no') ?>
<br/><br/>
</td>
</tr>
<b><?php print_string('configlimitindexbody', 'block_search') ?>:</b>
</td>
<td valign="top" align="left">
- <input id="block_search_limit_index_body" type="text" size="8" name="block_search_limit_index_body" value="<?php
+ <input id="block_search_limit_index_body" type="text" size="8" name="block_search_limit_index_body" value="<?php
if(isset($CFG->block_search_limit_index_body)) {
p($CFG->block_search_limit_index_body);
} else {
</table>
<fieldset name="">
-<legend align="top"><?php print_string('pdfhandling', 'block_search') ?></legend>
+<legend align="top"><?php print_string('pdfhandling', 'block_search') ?></legend>
<table cellspacing="5" width="90%">
<tr>
<td valign="top" align="right">
<b><?php print_string('configpdftotextcmd', 'block_search') ?>:</b>
</td>
<td valign="top" align="left">
- <input id="block_search_pdf_to_text_cmd" type="text" size="60" name="block_search_pdf_to_text_cmd" value="<?php
+ <input id="block_search_pdf_to_text_cmd" type="text" size="60" name="block_search_pdf_to_text_cmd" value="<?php
if(isset($CFG->block_search_pdf_to_text_cmd)) {
p($CFG->block_search_pdf_to_text_cmd);
} else {
</fieldset>
<fieldset name="">
-<legend align="top"><?php print_string('wordhandling', 'block_search') ?></legend>
+<legend align="top"><?php print_string('wordhandling', 'block_search') ?></legend>
<table cellspacing="5" width="90%">
<tr>
<td valign="top" align="right">
<b><?php print_string('configwordtotextcmd', 'block_search') ?>:</b>
</td>
<td valign="top" align="left">
- <input id="block_search_word_to_text_cmd" type="text" size="60" name="block_search_word_to_text_cmd" value="<?php
+ <input id="block_search_word_to_text_cmd" type="text" size="60" name="block_search_word_to_text_cmd" value="<?php
if(isset($CFG->block_search_word_to_text_cmd)) {
p($CFG->block_search_word_to_text_cmd);
} else {
<b><?php print_string('configwordtotextenv', 'block_search') ?>:</b>
</td>
<td valign="top" align="left">
- <input id="block_search_word_to_text_env" type="text" size="60" name="block_search_word_to_text_env" value="<?php
+ <input id="block_search_word_to_text_env" type="text" size="60" name="block_search_word_to_text_env" value="<?php
if(isset($CFG->block_search_word_to_text_env)) {
echo $CFG->block_search_word_to_text_env;
} else {
</table>
</fieldset>
-<?php
+<?php
$types = split(',', $CFG->block_search_filetypes);
if (!empty($types)){
foreach($types as $type) {
if (preg_match("/\\b$type\\b/i", $defaultfiletypes)) continue;
?>
<fieldset name="">
-<legend align="top"><?php echo get_string('handlingfor', 'block_search').' '.$utype ?></legend>
+<legend align="top"><?php echo get_string('handlingfor', 'block_search').' '.$utype ?></legend>
<table cellspacing="5" width="90%">
<tr>
<td valign="top" align="right">
<b><?php print_string('configtypetotxtcmd', 'block_search') ?>:</b>
</td>
<td valign="top" align="left">
- <input id="block_search_<?php p($type) ?>_to_text_cmd" type="text" size="60" name="block_search_<?php p($type) ?>_to_text_cmd" value="<?php
+ <input id="block_search_<?php p($type) ?>_to_text_cmd" type="text" size="60" name="block_search_<?php p($type) ?>_to_text_cmd" value="<?php
$propname = "block_search_{$type}_to_text_cmd";
if(isset($CFG->$propname)) {
p($CFG->$propname);
- }
+ }
?>"/>
<br/><br/>
</td>
<b><?php print_string('configtypetotxtenv', 'block_search') ?>:</b>
</td>
<td valign="top" align="left">
- <input id="block_search_<?php p($type) ?>_to_text_env" type="text" size="60" name="block_search_<?php p($type) ?>_to_text_env" value="<?php
+ <input id="block_search_<?php p($type) ?>_to_text_env" type="text" size="60" name="block_search_<?php p($type) ?>_to_text_env" value="<?php
$propname = "block_search_{$type}_to_text_env";
if(isset($CFG->$propname)) {
echo $CFG->$propname;
?>
<fieldset name="">
-<legend align="top"><?php echo get_string('searchdiscovery', 'block_search') ?></legend>
+<legend align="top"><?php echo get_string('searchdiscovery', 'block_search') ?></legend>
<table>
<tr>
<td>
</fieldset>
<fieldset name="">
-<legend align="top"><?php echo get_string('modulessearchswitches', 'block_search') ?></legend>
+<legend align="top"><?php echo get_string('modulessearchswitches', 'block_search') ?></legend>
<table cellspacing="5" width="90%">
<tr valign="top">
<td align="left">
}
$found_searchable_modules = 1;
}
-}
+}
if (!$found_searchable_modules) {
print_string('nosearchablemodules', 'block_search');
-}
+}
?>
</td>
</fieldset>
<fieldset name="">
-<legend align="top"><?php echo get_string('blockssearchswitches', 'block_search') ?></legend>
+<legend align="top"><?php echo get_string('blockssearchswitches', 'block_search') ?></legend>
<table cellspacing="5" width="90%">
<tr valign="top">
<td align="left">
$keyname = "search_in_{$block->name}";
$checked = (!isset($CFG->$keyname) || $CFG->$keyname) ? 'checked="checked"' : '' ;
echo "<input type=\"checkbox\" name=\"search_in_{$block->name}\" value=\"1\" {$checked} />";
-
+
// multiple fallback strategy to get the name of the block
$blocklabel = get_string('blockname', 'block_'.$block->name);
if ($blocklabel == '[[blockname]]') $blocklabel = get_string($block->name, 'block_'.$block->name);
}
$found_searchable_blocks = 1;
}
-}
+}
if (!$found_searchable_blocks) {
print_string('nosearchableblocks', 'block_search');
-}
+}
?>
</td>
-<?php //$Id$
+<?php
-// This file keeps track of upgrades to
+// This file keeps track of upgrades to
// the search block
//
// Sometimes, changes between versions involve
$dbman = $DB->get_manager();
$result = true;
-/// And upgrade begins here. For each one, you'll need one
-/// block of code similar to the next one. Please, delete
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
/// this comment lines once this file start handling proper
/// upgrade code.
return $result;
}
-?>
+
-<?PHP //$Id$
+<?php
class block_search_forums extends block_base {
function init() {
//Accessibility: replaced <input value=" />" type="submit"> with configurable text/'silent' character.
// Theme config, $CFG->block_search_button = get_arrow_right() .'<span class="accesshide">'.get_string('search').'</span>';
$button = (isset($CFG->block_search_button)) ? $CFG->block_search_button : get_string('go');
-
+
$this->content->text = '<div class="searchform">';
$this->content->text .= '<form action="'.$CFG->wwwroot.'/mod/forum/search.php" style="display:inline"><fieldset class="invisiblefieldset">';
$this->content->text .= '<input name="id" type="hidden" value="'.$this->page->course->id.'" />'; // course
$this->content->text .= '<label class="accesshide" for="searchform_search">'.$search.'</label>'.
'<input id="searchform_search" name="search" type="text" size="16" />';
- $this->content->text .= '<button id="searchform_button" type="submit" title="'.$search.'">'.$button.'</button><br />';
+ $this->content->text .= '<button id="searchform_button" type="submit" title="'.$search.'">'.$button.'</button><br />';
$this->content->text .= '<a href="'.$CFG->wwwroot.'/mod/forum/search.php?id='.$this->page->course->id.'">'.$advancedsearch.'</a>';
$this->content->text .= $OUTPUT->help_icon(moodle_help_icon::make('search', $advancedsearch));
$this->content->text .= '</fieldset></form></div>';
}
}
-?>
+
-<?php //$Id$
+<?php
-// This file keeps track of upgrades to
+// This file keeps track of upgrades to
// the search_forums block
//
// Sometimes, changes between versions involve
$dbman = $DB->get_manager();
$result = true;
-/// And upgrade begins here. For each one, you'll need one
-/// block of code similar to the next one. Please, delete
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
/// this comment lines once this file start handling proper
/// upgrade code.
return $result;
}
-?>
+
-<?PHP //$Id$
+<?php
class block_section_links extends block_base {
}
}
-?>
+
-<?php //$Id$
+<?php
-// This file keeps track of upgrades to
+// This file keeps track of upgrades to
// the section_links block
//
// Sometimes, changes between versions involve
$dbman = $DB->get_manager();
$result = true;
-/// And upgrade begins here. For each one, you'll need one
-/// block of code similar to the next one. Please, delete
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
/// this comment lines once this file start handling proper
/// upgrade code.
return $result;
}
-?>
+
if (!empty($this->config->enablesidebarpopout) && $this->config->enablesidebarpopout == 'yes') {
user_preference_allow_ajax_update('nav_in_tab_panel_settingsnav'.block_settings_navigation_tree::$navcount, PARAM_INT);
-
+
$moveicon = new moodle_action_icon();
$moveicon->link->add_classes('moveto customcommand requiresjs');
$moveicon->link->url = $this->page->url;
-<?php //$Id$
+<?php
class block_site_main_menu extends block_list {
function init() {
}
}
-?>
+
-<?php //$Id$
+<?php
class block_social_activities extends block_list {
function init(){
}
}
-?>
+
-<?php //$Id$
+<?php
-// This file keeps track of upgrades to
+// This file keeps track of upgrades to
// the social_activities block
//
// Sometimes, changes between versions involve
$dbman = $DB->get_manager();
$result = true;
-/// And upgrade begins here. For each one, you'll need one
-/// block of code similar to the next one. Please, delete
+/// And upgrade begins here. For each one, you'll need one
+/// block of code similar to the next one. Please, delete
/// this comment lines once this file start handling proper
/// upgrade code.
return $result;
}
-?>
+
-<?php // $id$
+<?php
require_once($CFG->dirroot.'/tag/lib.php');
require_once($CFG->libdir . '/filelib.php');
}
}
-?>
+
<?php
-// This file is part of Moodle - http://moodle.org/
-//
+// 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
// 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/>.
-<?php
+<?php
require_once($CFG->dirroot.'/tag/lib.php');
require_once($CFG->libdir . '/filelib.php');
return $text;
}
}
-?>
+
<?php
-// This file is part of Moodle - http://moodle.org/
-//
+// 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
// 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/>.
-<?PHP //$Id$
+<?php
class block_tags extends block_base {
function init() {
return $this->content;
}
}
-?>
+
<?php
-// This file is part of Moodle - http://moodle.org/
-//
+// 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
// 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/>.
$settings->add(new admin_setting_configcheckbox('block_tags_showcoursetags', get_string('showcoursetags', 'block_tags'),
get_string('showcoursetagsdef', 'block_tags'), 0));
-?>
+
* rewrite backup/restore
optional - no changes needed in older code:
-*
+*
TODO: add links to docs
\ No newline at end of file
-<?php // $Id$
+<?php
/////////////////////////////////////////////////////////////////////////////////
/// Code fragment to define the version of the blog module
$blog_version = 2009070600; // The current version of blog module (Date: YYYYMMDDXX)
$module->cron = 1800; // Period for cron to check this module (secs)
-?>
+
<?php
echo $OUTPUT->footer();
-
-
-?>
-<?php // $Id$
+<?php
/**
* Create and allocate users go groups
*
}
echo $OUTPUT->footer();
-?>
-<?php // $Id$
+<?php
require_once($CFG->dirroot.'/lib/formslib.php');
return $errors;
}
}
-
-?>
echo $OUTPUT->confirm($message, $formcontinue, $formcancel);
echo $OUTPUT->footer();
}
-?>
return null;
}
-}
\ No newline at end of file
+}
echo '</div>';
$editform->display();
echo $OUTPUT->footer();
-?>
-<?php //$Id$
+<?php
require_once($CFG->dirroot.'/lib/formslib.php');
return $this->_upload_manager;
}
}
-
-?>
echo $OUTPUT->heading($strheading);
$editform->display();
echo $OUTPUT->footer();
-
-?>
-<?php //$Id$
+<?php
require_once($CFG->dirroot.'/lib/formslib.php');
}
}
-?>
echo $OUTPUT->container_end();
echo $OUTPUT->footer();
-
-?>
///if (debugging()) echo 'Debug: '.$action;
return $action;
}
-
-?>
// Return list of roles containing their users
return $roles;
}
-
-?>
-<?php // $Id$
+<?php
/**
* Add/remove members from group.
*
<?php
echo $OUTPUT->footer();
-?>
-<?php // $Id$
+<?php
/**
* Print an overview of groupings & group membership
*
}
echo $OUTPUT->footer();
-?>
-<?php // $Id$
+<?php
$row = $tabs = array();
$row[] = new tabobject('groups',
$CFG->wwwroot.'/group/index.php?id='.$courseid,
echo '<div class="groupdisplay">';
print_tabs($tabs, $currenttab);
echo '</div>';
-?>