/** * Init method, every subclass will have its own */ function init() { $this->introstr = 'confirmcheckdefaults'; parent::init(); // Set own core attributes // Set own custom attributes // Get needed strings $this->loadStrings(array('wrongdefaults' => 'tool_xmldb', 'nowrongdefaultsfound' => 'tool_xmldb', 'yeswrongdefaultsfound' => 'tool_xmldb', 'expected' => 'tool_xmldb', 'actual' => 'tool_xmldb')); }
/** * Init method, every subclass will have its own */ function init() { $this->introstr = 'confirmcheckforeignkeys'; parent::init(); // Set own core attributes // Set own custom attributes // Get needed strings $this->loadStrings(array('key' => 'tool_xmldb', 'violatedforeignkeys' => 'tool_xmldb', 'noviolatedforeignkeysfound' => 'tool_xmldb', 'violatedforeignkeysfound' => 'tool_xmldb', 'violations' => 'tool_xmldb')); }
/** * Init method, every subclass will have its own */ function init() { $this->introstr = 'confirmcheckindexes'; parent::init(); // Set own core attributes // Set own custom attributes // Get needed strings $this->loadStrings(array('missing' => 'tool_xmldb', 'key' => 'tool_xmldb', 'index' => 'tool_xmldb', 'missingindexes' => 'tool_xmldb', 'nomissingindexesfound' => 'tool_xmldb', 'yesmissingindexesfound' => 'tool_xmldb')); }
/** * Init method, every subclass will have its own */ function init() { global $DB; $this->introstr = 'confirmcheckbigints'; parent::init(); // Set own core attributes // Set own custom attributes // Get needed strings $this->loadStrings(array('wrongints' => 'tool_xmldb', 'nowrongintsfound' => 'tool_xmldb', 'yeswrongintsfound' => 'tool_xmldb')); }
/** * Init method, every subclass will have its own */ function init() { global $DB; $this->introstr = 'confirmcheckbigints'; parent::init(); /// Set own core attributes /// Set own custom attributes /// Get needed strings $this->loadStrings(array('wrongints' => 'xmldb', 'nowrongintsfound' => 'xmldb', 'yeswrongintsfound' => 'xmldb', 'mysqlextracheckbigints' => 'xmldb')); /// Correct fields must be type bigint for MySQL and int8 for PostgreSQL $this->dbfamily = $DB->get_dbfamily(); switch ($this->dbfamily) { case 'mysql': $this->correct_type = 'bigint'; break; case 'postgres': $this->correct_type = 'int8'; break; default: $this->correct_type = NULL; } }