PageRenderTime 789ms queryFilters 0ms Sphinxql 164ms GetByIds 595ms meta 0ms repositoryFilters 0ms languageFilters 0ms sourceFilters 0ms

85 results for 'php compact repo:moodle/moodle' (789 ms)

Source

Language

Repository

preferences.php git://github.com/moodle/moodle.git | PHP | 87 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
25require_once '../../../config.php';
26require_once $CFG->libdir . '/gradelib.php';
27require_once '../../lib.php';
27require_once '../../lib.php';
28core_php_time_limit::raise();
29
31
32$PAGE->set_url(new moodle_url('/grade/report/grader/preferences.php', array('id'=>$courseid)));
33$PAGE->set_pagelayout('admin');
47require('preferences_form.php');
48$mform = new grader_report_preferences_form('preferences.php', compact('course'));
49
63
64    redirect($CFG->wwwroot . '/grade/report/grader/index.php?id='.$courseid); // message here breaks accessability and is sloooowww
65    exit;
externallib.php https://bitbucket.org/moodle/moodle.git | PHP | 2,761 lines
1<?php
2
27
28require_once("$CFG->libdir/externallib.php");
29
61
62        require_once($CFG->dirroot . "/mod/forum/lib.php");
63
306
307        // Compact/extract functions are not recommended.
308        $discussionid   = $params['discussionid'];
333
334        // This require must be here, see mod/forum/discuss.php.
335        require_once($CFG->dirroot . "/mod/forum/lib.php");
539
540        require_once($CFG->dirroot . "/mod/forum/lib.php");
541
outputrenderers.php git://github.com/moodle/moodle.git | PHP | 5,233 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
83        if ($this->mustache === null) {
84            require_once("{$CFG->libdir}/filelib.php");
85
353    /**
354     * Return the site's compact logo URL, if any.
355     *
359     */
360    public function get_compact_logo_url($maxwidth = 100, $maxheight = 100) {
361        global $CFG;
361        global $CFG;
362        $logo = get_config('core_admin', 'logocompact');
363        if (empty($logo)) {
370        // Use $CFG->themerev to prevent browser caching when the file changes.
371        return moodle_url::make_pluginfile_url(context_system::instance()->id, 'core_admin', 'logocompact', $filepath,
372            theme_get_revision(), $logo);
externallib.php git://github.com/moodle/moodle.git | PHP | 2,761 lines
1<?php
2
27
28require_once("$CFG->libdir/externallib.php");
29
61
62        require_once($CFG->dirroot . "/mod/forum/lib.php");
63
306
307        // Compact/extract functions are not recommended.
308        $discussionid   = $params['discussionid'];
333
334        // This require must be here, see mod/forum/discuss.php.
335        require_once($CFG->dirroot . "/mod/forum/lib.php");
539
540        require_once($CFG->dirroot . "/mod/forum/lib.php");
541
editlib.php git://github.com/moodle/moodle.git | PHP | 659 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
30
31require_once($CFG->libdir . '/questionlib.php');
32
273 * Common setup for all pages for editing questions.
274 * @param string $baseurl the name of the script calling this funciton. For examle 'qusetion/edit.php'.
275 * @param string $edittab code for this edit tab
361 * @param string $edittab Code for this edit tab
362 * @param string $baseurl The name of the script calling this funciton. For examle 'qusetion/edit.php'.
363 * @param array $params The provided parameters to construct the resources with.
426        $courseid = $cm->course;
427        $thispageurl->params(compact('cmid'));
428        require_login($courseid, false, $cm);
432        $cm = null;
433        $thispageurl->params(compact('courseid'));
434        require_login($courseid, false);
mysql_compressed_rows.php git://github.com/moodle/moodle.git | PHP | 202 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
27
28require(__DIR__.'/../../config.php');
29require_once($CFG->libdir . '/clilib.php');
65Example:
66\$ sudo -u www-data /usr/bin/php admin/cli/mysql_compressed_rows.php -l
67";
101
102        if ($format === 'Compact' or $format === 'Redundant') {
103            $problem = true;
127        }
128        if ($format === 'Compact' or $format === 'Redundant') {
129            $fixtables[$table] = $table;
176        }
177        if ($format === 'Compact' or $format === 'Redundant') {
178            $fixtables[$table] = $table;
mysql_compressed_rows.php https://bitbucket.org/moodle/moodle.git | PHP | 202 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
27
28require(__DIR__.'/../../config.php');
29require_once($CFG->libdir . '/clilib.php');
65Example:
66\$ sudo -u www-data /usr/bin/php admin/cli/mysql_compressed_rows.php -l
67";
101
102        if ($format === 'Compact' or $format === 'Redundant') {
103            $problem = true;
127        }
128        if ($format === 'Compact' or $format === 'Redundant') {
129            $fixtables[$table] = $table;
176        }
177        if ($format === 'Compact' or $format === 'Redundant') {
178            $fixtables[$table] = $table;
barcodes.php git://github.com/moodle/moodle.git | PHP | 2,289 lines
1<?php
2//============================================================+
2//============================================================+
3// File name   : barcodes.php
4// Version     : 1.0.021
36 * @file
37 * PHP class to creates array representations for common 1D barcodes to be used with TCPDF.
38 * @package com.tecnick.tcpdf
44 * @class TCPDFBarcode
45 * PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org).<br>
46 * @package com.tecnick.tcpdf
535	 * CODE 93 - USS-93
536	 * Compact code similar to Code 39
537	 * @param $code (string) code to represent.
2030	 * Intelligent Mail barcode is a 65-bar code for use on mail in the United States.
2031	 * The fields are described as follows:<ul><li>The Barcode Identifier shall be assigned by USPS to encode the presort identification that is currently printed in human readable form on the optional endorsement line (OEL) as well as for future USPS use. This shall be two digits, with the second digit in the range of 0–4. The allowable encoding ranges shall be 00–04, 10–14, 20–24, 30–34, 40–44, 50–54, 60–64, 70–74, 80–84, and 90–94.</li><li>The Service Type Identifier shall be assigned by USPS for any combination of services requested on the mailpiece. The allowable encoding range shall be 000http://it2.php.net/manual/en/function.dechex.php–999. Each 3-digit value shall correspond to a particular mail class with a particular combination of service(s). Each service program, such as OneCode Confirm and OneCode ACS, shall provide the list of Service Type Identifier values.</li><li>The Mailer or Customer Identifier shall be assigned by USPS as a unique, 6 or 9 digit number that identifies a business entity. The allowable encoding range for the 6 digit Mailer ID shall be 000000- 899999, while the allowable encoding range for the 9 digit Mailer ID shall be 900000000-999999999.</li><li>The Serial or Sequence Number shall be assigned by the mailer for uniquely identifying and tracking mailpieces. The allowable encoding range shall be 000000000–999999999 when used with a 6 digit Mailer ID and 000000-999999 when used with a 9 digit Mailer ID. e. The Delivery Point ZIP Code shall be assigned by the mailer for routing the mailpiece. This shall replace POSTNET for routing the mailpiece to its final delivery point. The length may be 0, 5, 9, or 11 digits. The allowable encoding ranges shall be no ZIP Code, 00000–99999,  000000000–999999999, and 00000000000–99999999999.</li></ul>
2032	 * @param $code (string) code to print, separate the ZIP (routing code) from the rest using a minus char '-' (BarcodeID_ServiceTypeID_MailerID_SerialNumber-RoutingCode)
barcodes.php git://github.com/moodle/moodle.git | text | 0 lines
1<?php
2//============================================================+
2//============================================================+
3// File name   : barcodes.php
4// Version     : 1.0.021
36 * @file
37 * PHP class to creates array representations for common 1D barcodes to be used with TCPDF.
38 * @package com.tecnick.tcpdf
44 * @class TCPDFBarcode
45 * PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org).<br>
46 * @package com.tecnick.tcpdf
535	 * CODE 93 - USS-93
536	 * Compact code similar to Code 39
537	 * @param $code (string) code to represent.
2030	 * Intelligent Mail barcode is a 65-bar code for use on mail in the United States.
2031	 * The fields are described as follows:<ul><li>The Barcode Identifier shall be assigned by USPS to encode the presort identification that is currently printed in human readable form on the optional endorsement line (OEL) as well as for future USPS use. This shall be two digits, with the second digit in the range of 0–4. The allowable encoding ranges shall be 00–04, 10–14, 20–24, 30–34, 40–44, 50–54, 60–64, 70–74, 80–84, and 90–94.</li><li>The Service Type Identifier shall be assigned by USPS for any combination of services requested on the mailpiece. The allowable encoding range shall be 000http://it2.php.net/manual/en/function.dechex.php–999. Each 3-digit value shall correspond to a particular mail class with a particular combination of service(s). Each service program, such as OneCode Confirm and OneCode ACS, shall provide the list of Service Type Identifier values.</li><li>The Mailer or Customer Identifier shall be assigned by USPS as a unique, 6 or 9 digit number that identifies a business entity. The allowable encoding range for the 6 digit Mailer ID shall be 000000- 899999, while the allowable encoding range for the 9 digit Mailer ID shall be 900000000-999999999.</li><li>The Serial or Sequence Number shall be assigned by the mailer for uniquely identifying and tracking mailpieces. The allowable encoding range shall be 000000000–999999999 when used with a 6 digit Mailer ID and 000000-999999 when used with a 9 digit Mailer ID. e. The Delivery Point ZIP Code shall be assigned by the mailer for routing the mailpiece. This shall replace POSTNET for routing the mailpiece to its final delivery point. The length may be 0, 5, 9, or 11 digits. The allowable encoding ranges shall be no ZIP Code, 00000–99999,  000000000–999999999, and 00000000000–99999999999.</li></ul>
2032	 * @param $code (string) code to print, separate the ZIP (routing code) from the rest using a minus char '-' (BarcodeID_ServiceTypeID_MailerID_SerialNumber-RoutingCode)
aggregate.php git://github.com/moodle/moodle.git | PHP | 57 lines
1<?php
2
25
26require(__DIR__.'/../../config.php');
27require_once(__DIR__.'/locallib.php');
31
32// the params to be re-passed to view.php
33$page       = optional_param('page', 0, PARAM_INT);
41
42$PAGE->set_url($workshop->aggregate_url(), compact('confirm', 'page', 'sortby', 'sorthow'));
43
56
57redirect(new moodle_url($workshop->view_url(), compact('page', 'sortby', 'sorthow')));
58
report.php git://github.com/moodle/moodle.git | PHP | 610 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
25
26require_once($CFG->dirroot.'/mod/scorm/report/interactions/responsessettings_form.php');
27
45            if (scorm_delete_responses($attemptids, $scorm)) { //delete responses.
46                add_to_log($course->id, 'scorm', 'delete attempts', 'report.php?id=' . $cm->id, implode(",", $attemptids), $cm->id);
47                echo $OUTPUT->notification(get_string('scormresponsedeleted', 'scorm'), 'notifysuccess');
53        // detailed report
54        $mform = new mod_scorm_report_interactions_settings($PAGE->url, compact('currentgroup'));
55        if ($fromform = $mform->get_data()) {
241            } else if ($download == 'ODS') {
242                require_once("$CFG->libdir/odslib.class.php");
243
280            } else if ($download =='Excel') {
281                require_once("$CFG->libdir/excellib.class.php");
282
index.php git://github.com/moodle/moodle.git | PHP | 110 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
16
17require_once('../../../config.php');
18require_once('../lib.php');
23
24$url = new moodle_url('/mod/chat/gui_ajax/index.php', array('id' => $id));
25if ($groupid !== 0) {
29$PAGE->set_popup_notification_allowed(false); // No popup notifications in the chat window.
30$PAGE->requires->strings_for_js(array('coursetheme', 'bubble', 'compact'), 'mod_chat');
31
55if ($theme != 'course_theme' and !file_exists(__DIR__ . '/theme/'.$theme.'/chat.css')) {
56    $theme = 'compact';
57}
72$modulecfg = array(
73    'home' => $CFG->wwwroot.'/mod/chat/view.php?id='.$cm->id,
74    'chaturl' => $CFG->wwwroot.'/mod/chat/gui_ajax/index.php?id='.$id,
report.php git://github.com/moodle/moodle.git | text | 0 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
25
26require_once($CFG->dirroot.'/mod/scorm/report/interactions/responsessettings_form.php');
27
45            if (scorm_delete_responses($attemptids, $scorm)) { //delete responses.
46                add_to_log($course->id, 'scorm', 'delete attempts', 'report.php?id=' . $cm->id, implode(",", $attemptids), $cm->id);
47                echo $OUTPUT->notification(get_string('scormresponsedeleted', 'scorm'), 'notifysuccess');
53        // detailed report
54        $mform = new mod_scorm_report_interactions_settings($PAGE->url, compact('currentgroup'));
55        if ($fromform = $mform->get_data()) {
241            } else if ($download == 'ODS') {
242                require_once("$CFG->libdir/odslib.class.php");
243
280            } else if ($download =='Excel') {
281                require_once("$CFG->libdir/excellib.class.php");
282
tcpdf_barcodes_1d.php https://bitbucket.org/moodle/moodle.git | PHP | 2,357 lines
1<?php
2//============================================================+
2//============================================================+
3// File name   : tcpdf_barcodes_1d.php
4// Version     : 1.0.027
36 * @file
37 * PHP class to creates array representations for common 1D barcodes to be used with TCPDF.
38 * @package com.tecnick.tcpdf
44 * @class TCPDFBarcode
45 * PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org).<br>
46 * @package com.tecnick.tcpdf
554	 * CODE 93 - USS-93
555	 * Compact code similar to Code 39
556	 * @param $code (string) code to represent.
2048	 * Intelligent Mail barcode is a 65-bar code for use on mail in the United States.
2049	 * The fields are described as follows:<ul><li>The Barcode Identifier shall be assigned by USPS to encode the presort identification that is currently printed in human readable form on the optional endorsement line (OEL) as well as for future USPS use. This shall be two digits, with the second digit in the range of 0–4. The allowable encoding ranges shall be 00–04, 10–14, 20–24, 30–34, 40–44, 50–54, 60–64, 70–74, 80–84, and 90–94.</li><li>The Service Type Identifier shall be assigned by USPS for any combination of services requested on the mailpiece. The allowable encoding range shall be 000http://it2.php.net/manual/en/function.dechex.php–999. Each 3-digit value shall correspond to a particular mail class with a particular combination of service(s). Each service program, such as OneCode Confirm and OneCode ACS, shall provide the list of Service Type Identifier values.</li><li>The Mailer or Customer Identifier shall be assigned by USPS as a unique, 6 or 9 digit number that identifies a business entity. The allowable encoding range for the 6 digit Mailer ID shall be 000000- 899999, while the allowable encoding range for the 9 digit Mailer ID shall be 900000000-999999999.</li><li>The Serial or Sequence Number shall be assigned by the mailer for uniquely identifying and tracking mailpieces. The allowable encoding range shall be 000000000–999999999 when used with a 6 digit Mailer ID and 000000-999999 when used with a 9 digit Mailer ID. e. The Delivery Point ZIP Code shall be assigned by the mailer for routing the mailpiece. This shall replace POSTNET for routing the mailpiece to its final delivery point. The length may be 0, 5, 9, or 11 digits. The allowable encoding ranges shall be no ZIP Code, 00000–99999,  000000000–999999999, and 00000000000–99999999999.</li></ul>
2050	 * @param $code (string) code to print, separate the ZIP (routing code) from the rest using a minus char '-' (BarcodeID_ServiceTypeID_MailerID_SerialNumber-RoutingCode)
Language.php git://github.com/moodle/moodle.git | PHP | 204 lines
1<?php
2
103     * Retrieves a localised error name.
104     * @param int $int error number, corresponding to PHP's error reporting
105     * @return string localised message
171                    }
172                    $subst['$'.$i.'.Compact'] =
173                    $subst['$'.$i.'.Serialized'] = $generator->generateFromToken($value);
173                    $subst['$'.$i.'.Serialized'] = $generator->generateFromToken($value);
174                    // a more complex algorithm for compact representation
175                    // could be introduced for all types of tokens. This
179                        $stripped_token->attr = array();
180                        $subst['$'.$i.'.Compact'] = $generator->generateFromToken($stripped_token);
181                    }
report.php https://bitbucket.org/moodle/moodle.git | PHP | 546 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
24defined('MOODLE_INTERNAL') || die();
25require_once($CFG->libdir . '/csvlib.class.php');
26
45            if (scorm_delete_responses($attemptids, $scorm)) { //delete responses.
46                add_to_log($course->id, 'scorm', 'delete attempts', 'report.php?id=' . $cm->id, implode(",", $attemptids), $cm->id);
47                echo $OUTPUT->notification(get_string('scormresponsedeleted', 'scorm'), 'notifysuccess');
53        // detailed report
54        $mform = new mod_scorm_report_settings($PAGE->url, compact('currentgroup'));
55        if ($fromform = $mform->get_data()) {
189            } else if ($download =='ODS') {
190                require_once("$CFG->libdir/odslib.class.php");
191
228            } else if ($download =='Excel') {
229                require_once("$CFG->libdir/excellib.class.php");
230
report.php https://bitbucket.org/moodle/moodle.git | PHP | 664 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
25
26require_once($CFG->dirroot.'/mod/scorm/report/objectives/responsessettings_form.php');
27
52            if (scorm_delete_responses($attemptids, $scorm)) { // Delete responses.
53                add_to_log($course->id, 'scorm', 'delete attempts', 'report.php?id=' . $cm->id, implode(",", $attemptids), $cm->id);
54                echo $OUTPUT->notification(get_string('scormresponsedeleted', 'scorm'), 'notifysuccess');
60        // Detailed report.
61        $mform = new mod_scorm_report_objectives_settings($PAGE->url, compact('currentgroup'));
62        if ($fromform = $mform->get_data()) {
258            } else if ($download == 'ODS') {
259                require_once("$CFG->libdir/odslib.class.php");
260
297            } else if ($download =='Excel') {
298                require_once("$CFG->libdir/excellib.class.php");
299
report.php git://github.com/moodle/moodle.git | PHP | 546 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
26defined('MOODLE_INTERNAL') || die();
27require_once($CFG->libdir . '/csvlib.class.php');
28
54        // Detailed report.
55        $mform = new \mod_scorm_report_settings($PAGE->url, compact('currentgroup'));
56        if ($fromform = $mform->get_data()) {
194            } else if ($download == 'ODS') {
195                require_once("$CFG->libdir/odslib.class.php");
196
233            } else if ($download == 'Excel') {
234                require_once("$CFG->libdir/excellib.class.php");
235
395                    if (!$download) {
396                        $url = new \moodle_url('/user/view.php', array('id' => $scouser->userid, 'course' => $course->id));
397                        $row[] = \html_writer::link($url, fullname($scouser));
report.php git://github.com/moodle/moodle.git | PHP | 643 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
27
28require_once($CFG->dirroot.'/mod/scorm/report/interactions/responsessettings_form.php');
29
55        // Detailed report.
56        $mform = new \mod_scorm_report_interactions_settings($PAGE->url, compact('currentgroup'));
57        if ($fromform = $mform->get_data()) {
271            } else if ($download == 'ODS') {
272                require_once("$CFG->libdir/odslib.class.php");
273
310            } else if ($download == 'Excel') {
311                require_once("$CFG->libdir/excellib.class.php");
312
441                    if (!$download) {
442                        $url = new \moodle_url('/user/view.php', array('id' => $scouser->userid, 'course' => $course->id));
443                        $row[] = \html_writer::link($url, fullname($scouser));
report.php git://github.com/moodle/moodle.git | PHP | 671 lines
1<?php
2// This file is part of Moodle - http://moodle.org/
27
28require_once($CFG->dirroot.'/mod/scorm/report/objectives/responsessettings_form.php');
29
61        // Detailed report.
62        $mform = new \mod_scorm_report_objectives_settings($PAGE->url, compact('currentgroup'));
63        if ($fromform = $mform->get_data()) {
261            } else if ($download == 'ODS') {
262                require_once("$CFG->libdir/odslib.class.php");
263
300            } else if ($download == 'Excel') {
301                require_once("$CFG->libdir/excellib.class.php");
302
431                    if (!$download) {
432                        $url = new \moodle_url('/user/view.php', array('id' => $scouser->userid, 'course' => $course->id));
433                        $row[] = \html_writer::link($url, fullname($scouser));
1 2 3 4 5