Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 711... Línea 711...
711
     * end users and admins should never see these problems!
711
     * end users and admins should never see these problems!
712
     *
712
     *
713
     * @param xmldb_table $xmldb_table optional when object is table
713
     * @param xmldb_table $xmldb_table optional when object is table
714
     * @return string null if ok, error message if problem found
714
     * @return string null if ok, error message if problem found
715
     */
715
     */
716
    public function validateDefinition(xmldb_table $xmldb_table=null) {
716
    public function validateDefinition(?xmldb_table $xmldb_table=null) {
717
        // table parameter is ignored
717
        // table parameter is ignored
718
        $name = $this->getName();
718
        $name = $this->getName();
719
        if (strlen($name) > self::NAME_MAX_LENGTH) {
719
        if (strlen($name) > self::NAME_MAX_LENGTH) {
720
            return 'Invalid table name {'.$name.'}: name is too long. Limit is '.self::NAME_MAX_LENGTH.' chars.';
720
            return 'Invalid table name {'.$name.'}: name is too long. Limit is '.self::NAME_MAX_LENGTH.' chars.';
721
        }
721
        }