Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 46... Línea 46...
46
    /** @var int number of decimals */
46
    /** @var int number of decimals */
47
    protected $decimals;
47
    protected $decimals;
Línea 48... Línea 48...
48
 
48
 
49
    /**
49
    /**
50
     * Note:
-
 
51
     *  - Oracle: VARCHAR2 has a limit of 4000 bytes
50
     * Note:
52
     *  - SQL Server: NVARCHAR has a limit of 40000 chars
51
     *  - SQL Server: NVARCHAR has a limit of 40000 chars
53
     *  - MySQL: VARCHAR 65,535 chars
52
     *  - MySQL: VARCHAR 65,535 chars
54
     *  - PostgreSQL: no limit
53
     *  - PostgreSQL: no limit
55
     *
54
     *
Línea 758... Línea 757...
758
     * end users and admins should never see these problems!
757
     * end users and admins should never see these problems!
759
     *
758
     *
760
     * @param xmldb_table $xmldb_table optional when object is table
759
     * @param xmldb_table $xmldb_table optional when object is table
761
     * @return string null if ok, error message if problem found
760
     * @return string null if ok, error message if problem found
762
     */
761
     */
763
    public function validateDefinition(xmldb_table $xmldb_table=null) {
762
    public function validateDefinition(?xmldb_table $xmldb_table=null) {
764
        if (!$xmldb_table) {
763
        if (!$xmldb_table) {
765
            return 'Invalid xmldb_field->validateDefinition() call, $xmldb_table is required.';
764
            return 'Invalid xmldb_field->validateDefinition() call, $xmldb_table is required.';
766
        }
765
        }
Línea 767... Línea 766...
767
 
766