芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/public_html/cepali/lib/xmldb/xmldb_constants.php
. /** * This file contains all the constants and variables used * by the XMLDB interface * * @package core_xmldb * @copyright 1999 onwards Martin Dougiamas http://dougiamas.com * 2001-3001 Eloy Lafuente (stronk7) http://contiento.com * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); // ==== First, some constants to be used by actions ==== /** Default flags for class */ define('ACTION_NONE', 0); /** The invoke function will return HTML */ define('ACTION_GENERATE_HTML', 1); /** The invoke function will return HTML */ define('ACTION_GENERATE_XML', 2); /** The class can have subaction */ define('ACTION_HAVE_SUBACTIONS', 1); // ==== Now the allowed DB Field Types ==== /** Wrong DB Type */ define ('XMLDB_TYPE_INCORRECT', 0); /** Integer */ define ('XMLDB_TYPE_INTEGER', 1); /** Decimal number */ define ('XMLDB_TYPE_NUMBER', 2); /** Floating Point number */ define ('XMLDB_TYPE_FLOAT', 3); /** String */ define ('XMLDB_TYPE_CHAR', 4); /** Text */ define ('XMLDB_TYPE_TEXT', 5); /** Binary */ define ('XMLDB_TYPE_BINARY', 6); /** Datetime */ define ('XMLDB_TYPE_DATETIME', 7); /** Timestamp */ define ('XMLDB_TYPE_TIMESTAMP', 8); // ==== Now the allowed DB Keys ==== /** Wrong DB Key */ define ('XMLDB_KEY_INCORRECT', 0); /** Primary Keys */ define ('XMLDB_KEY_PRIMARY', 1); /** Unique Keys */ define ('XMLDB_KEY_UNIQUE', 2); /** Foreign Keys */ define ('XMLDB_KEY_FOREIGN', 3); /** Check Constraints - NOT USED! */ define ('XMLDB_KEY_CHECK', 4); /** Foreign Key + Unique Key */ define ('XMLDB_KEY_FOREIGN_UNIQUE',5); // ==== Some other useful Constants ==== /** If the field is going to be unsigned @deprecated since 2.3 */ define ('XMLDB_UNSIGNED', true); /** If the field is going to be not null */ define ('XMLDB_NOTNULL', true); /** If the field is going to be a sequence */ define ('XMLDB_SEQUENCE', true); /** If the index is going to be unique */ define ('XMLDB_INDEX_UNIQUE', true); /** If the index is NOT going to be unique */ define ('XMLDB_INDEX_NOTUNIQUE',false); // ==== Some strings used widely ==== /** New line in xmldb generated files */ define ('XMLDB_LINEFEED', "\n"); /** Upgrade start in upgrade.php */ define ('XMLDB_PHP_HEADER', ' if ($oldversion < XXXXXXXXXX) {' . XMLDB_LINEFEED); /** Upgrade end in upgrade.php */ define ('XMLDB_PHP_FOOTER', ' }' . XMLDB_LINEFEED);