Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/xmldb/xmldb_constants.php
Go to the documentation of this file.
00001 <?php
00002 
00004 //                                                                       //
00005 // NOTICE OF COPYRIGHT                                                   //
00006 //                                                                       //
00007 // Moodle - Modular Object-Oriented Dynamic Learning Environment         //
00008 //          http://moodle.com                                            //
00009 //                                                                       //
00010 // Copyright (C) 1999 onwards Martin Dougiamas     http://dougiamas.com  //
00011 //           (C) 2001-3001 Eloy Lafuente (stronk7) http://contiento.com  //
00012 //                                                                       //
00013 // This program is free software; you can redistribute it and/or modify  //
00014 // it under the terms of the GNU General Public License as published by  //
00015 // the Free Software Foundation; either version 2 of the License, or     //
00016 // (at your option) any later version.                                   //
00017 //                                                                       //
00018 // This program is distributed in the hope that it will be useful,       //
00019 // but WITHOUT ANY WARRANTY; without even the implied warranty of        //
00020 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         //
00021 // GNU General Public License for more details:                          //
00022 //                                                                       //
00023 //          http://www.gnu.org/copyleft/gpl.html                         //
00024 //                                                                       //
00026 
00029 
00031     define('ACTION_NONE',             0);  //Default flags for class
00032     define('ACTION_GENERATE_HTML',    1);  //The invoke function will return HTML
00033     define('ACTION_GENERATE_XML',     2);  //The invoke function will return HTML
00034     define('ACTION_HAVE_SUBACTIONS',  1);  //The class can have subaction
00035 
00037     define ('XMLDB_TYPE_INCORRECT',   0);  //Wrong DB Type
00038     define ('XMLDB_TYPE_INTEGER',     1);  //Integer
00039     define ('XMLDB_TYPE_NUMBER',      2);  //Decimal number
00040     define ('XMLDB_TYPE_FLOAT',       3);  //Floating Point number
00041     define ('XMLDB_TYPE_CHAR',        4);  //String
00042     define ('XMLDB_TYPE_TEXT',        5);  //Text
00043     define ('XMLDB_TYPE_BINARY',      6);  //Binary
00044     define ('XMLDB_TYPE_DATETIME',    7);  //Datetime
00045     define ('XMLDB_TYPE_TIMESTAMP',   8);  //Timestamp
00046 
00048     define ('XMLDB_KEY_INCORRECT',     0);  //Wrong DB Key
00049     define ('XMLDB_KEY_PRIMARY',       1);  //Primary Keys
00050     define ('XMLDB_KEY_UNIQUE',        2);  //Unique Keys
00051     define ('XMLDB_KEY_FOREIGN',       3);  //Foreign Keys
00052     define ('XMLDB_KEY_CHECK',         4);  //Check Constraints - NOT USED!
00053     define ('XMLDB_KEY_FOREIGN_UNIQUE',5);  //Foreign Key + Unique Key
00054 
00056     define ('XMLDB_STATEMENT_INCORRECT',   0);  //Wrong Statement Type
00057     define ('XMLDB_STATEMENT_INSERT',      1);  //Insert Statements
00058     define ('XMLDB_STATEMENT_UPDATE',      2);  //Update Statements
00059     define ('XMLDB_STATEMENT_DELETE',      3);  //Delete Statements
00060     define ('XMLDB_STATEMENT_CUSTOM',      4);  //Custom Statements
00061 
00063     define ('XMLDB_UNSIGNED',        true);  //If the field is going to be unsigned
00064     define ('XMLDB_NOTNULL',         true);  //If the field is going to be not null
00065     define ('XMLDB_SEQUENCE',        true);  //If the field is going to be a sequence
00066     define ('XMLDB_INDEX_UNIQUE',    true);  //If the index is going to be unique
00067     define ('XMLDB_INDEX_NOTUNIQUE',false);  //If the index is NOT going to be unique
00068 
00070     define ('XMLDB_LINEFEED', "\n");
00071     define ('XMLDB_PHP_HEADER', '    if ($oldversion < XXXXXXXXXX) {' . XMLDB_LINEFEED);
00072     define ('XMLDB_PHP_FOOTER', '    }' . XMLDB_LINEFEED);
 All Data Structures Namespaces Files Functions Variables Enumerations