Adding them to warn people calling the php4 constructor.
$this->Clear();
}
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function cssparser($html = true) {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct($html);
+ }
+
function finalize() {
unset($this->css);
}
make_temp_directory('latex');
}
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function latex() {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct();
+ }
+
/**
* Accessor function for support_platform field.
* @return boolean value of supported_platform
$this->export_time = time();
}
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function grade_export_update_buffer() {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct();
+ }
+
public function flush($buffersize) {
global $CFG, $DB;
}
}
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function grade_plugin_return($params = null) {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct($params);
+ }
+
/**
* Returns return parameters as options array suitable for buttons.
* @return array options
}
}
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function grade_seq($courseid, $category_grade_last=false, $nooutcomes=false) {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct($courseid, $category_grade_last, $nooutcomes);
+ }
+
/**
* Static recursive helper - makes the grade_item for category the last children
*
}
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function grade_tree($courseid, $fillers=true, $category_grade_last=false,
+ $collapsed=null, $nooutcomes=false) {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct($courseid, $fillers, $category_grade_last, $collapsed, $nooutcomes);
+ }
+
/**
* Static recursive helper - removes items from collapsed categories
*
get_string('unlimitedgrades_help', 'grades'), '0', '1', '0');
}
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function admin_setting_special_gradelimiting() {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct();
+ }
+
/**
* Force site regrading
*/
$this->check_requisites();
}
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function component_installer($sourcebase, $zippath, $zipfilename, $md5filename='', $destpath='') {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct($sourcebase, $zippath, $zipfilename, $md5filename, $destpath);
+ }
+
/**
* This function will check if everything is properly set to begin
* one installation. Also, it will check for required settings
$this->_config = $config;\r
}\r
\r
+ /**\r
+ * Old syntax of class constructor. Deprecated in PHP7.\r
+ *\r
+ * @deprecated since Moodle 3.1\r
+ */\r
+ public function SpellChecker(&$config) {\r
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);\r
+ self::__construct($config);\r
+ }\r
+\r
/**\r
* Simple loopback function everything that gets in will be send back.\r
*\r
$this->_needProp = false;
}
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function Moxiecode_JSONReader($data) {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct($data);
+ }
+
function getToken() {
return $this->_token;
}
public function __construct() {
}
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function Moxiecode_JSON() {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct();
+ }
+
function decode($input) {
$reader = new Moxiecode_JSONReader($input);
$this->_format = "[{time}] [{level}] {message}";\r
}\r
\r
+ /**\r
+ * Old syntax of class constructor. Deprecated in PHP7.\r
+ *\r
+ * @deprecated since Moodle 3.1\r
+ */\r
+ public function Moxiecode_Logger() {\r
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);\r
+ self::__construct();\r
+ }\r
+\r
/**\r
* Sets the current log level, use the MC_LOGGER constants.\r
*\r
$this->restrict_str='';
}
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function environment_results($part) {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct($part);
+ }
+
/**
* Set the status
*
$this->allowimplicitmultiplication = $allowimplicitmultiplication;
}
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function EvalMath($allowconstants = false, $allowimplicitmultiplication = false) {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct($allowconstants, $allowimplicitmultiplication);
+ }
+
function e($expr) {
return $this->evaluate($expr);
}
* made a function to test a string to see if it is a valid func or var name.
* localized strings
* added round, ceil and floor functions.
-* EvalMath::EvalMath() changed to EvalMath::__construct()
+* EvalMath::EvalMath() changed to EvalMath::__construct() and there is a new EvalMath::EvalMath
+ function to maintain backwards compatibility
To see all changes diff against version 1.1, available from:
http://www.phpclasses.org/browse/package/2695.html
-skodak, Tim Hunt
\ No newline at end of file
+skodak, Tim Hunt
//ImageColorTransparent($this->image, $this->colour['white']); // colour for transparency
}
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function graph() {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct();
+ }
+
/**
* Prepare label's text for GD output.
*
$this->_labels = array();
$this->_regex = null;
}
-
+
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function ParallelRegex($case) {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct($case);
+ }
+
/**
* Adds a pattern with an optional label.
* @param string $pattern Perl style regex, but ( and )
public function __construct($start) {
$this->_stack = array($start);
}
-
+
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function StateStack($start) {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct($start);
+ }
+
/**
* Accessor for current state.
* @return string State as string.
}
}
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function calc_formula($formula, $params=false) {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct($formula, $params);
+ }
+
/**
* Raplace parameters used in existing formula,
* parameter names must contain only lowercase [a-z] letters, no other characters are allowed!
}
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function search_token($type, $value) {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct($type, $value);
+ }
+
// Try to clean up user input to avoid potential security issues.
// Need to think about this some more.
$this->addExitPattern("\s","plainstring");
}
+
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function search_lexer(&$parser) {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct($parser);
+ }
+
}
}
}
}
-
+
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function ouwiki_line($data, $linepos) {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct($data, $linepos);
+ }
+
/**
* @return string Normalised string representation of this line object
*/
$this->word=$word;
$this->start=$start;
}
+
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function ouwiki_word($word, $start) {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct($word, $start);
+ }
}
/**
}
}
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function ouwiki_changes($diff, $count2) {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct($diff, $count2);
+ }
+
/**
* Find deleted lines. These are lines in file1 that
* cannot be present even in modified form in file2
$this->initialize($page, $contexts, $currentcat, $defaultcategory, $todelete, $addcontexts);
}
+ /**
+ * Old syntax of class constructor. Deprecated in PHP7.
+ *
+ * @deprecated since Moodle 3.1
+ */
+ public function question_category_object($page, $pageurl, $contexts, $currentcat, $defaultcategory, $todelete, $addcontexts) {
+ debugging('Use of class name as constructor is deprecated', DEBUG_DEVELOPER);
+ self::__construct($page, $pageurl, $contexts, $currentcat, $defaultcategory, $todelete, $addcontexts);
+ }
+
/**
* Initializes this classes general category-related variables
*/