irm-1.6-b3/MDB/Modules/Manager/ibase.php
/**
     * check if planned changes are supported
     *
     * @param object $db        database object that is extended by this class
     * @param string $name name of the database that should be dropped
     * @return mixed MDB_OK on success, a MDB error on failure
     * @access public
     **/
check if planned changes are supported
@param object $db        database object that is extended by this class
@param string $name name of the database that should be dropped
@return mixed MDB_OK on success, a MDB error on failure
@access public
check if planned changes are supported @param object $db database object that is extended by this class @param string $name name of the database that should be dropped @return mixed MDB_OK on success a MDB error on failure @access public
function checkSupportedChanges(&$db, &$changes)
    {
        for($change=0, reset($changes);
            $change<count($changes);
            next($changes), $change++)
        {
            switch(key($changes)) {
                case "ChangedNotNull":
                case "notnull":
                    return($this->raiseError(MDB_ERROR_MANAGER, NULL, NULL,
                        'Check supported changes: it is not supported changes to field not null constraint'));
                case "ChangedDefault":
                case "default":
                    return($this->raiseError(MDB_ERROR_MANAGER, NULL, NULL,
                        'Check supported changes: it is not supported changes to field default value'));
                case "length":
                    return($this->raiseError(MDB_ERROR_MANAGER, NULL, NULL,
                        'Check supported changes: it is not supported changes to field default length'));
                case "unsigned":
                case "type":
                case "Declaration":
                case "Definition":
                    break;
                default:
                    return($this->raiseError(MDB_ERROR_MANAGER, NULL, NULL,
                        'Check supported changes: it is not supported change of type' . key($changes)));
            }
        }
        return(MDB_OK);
    }
function checkSupportedChanges ( & $ db , & $ changes ) { for ( $ change = 0 , reset ( $ changes ) ; $ change < count ( $ changes ) ; next ( $ changes ) , $ change ++ ) { switch ( key ( $ changes ) ) { case " ChangedNotNull " : case " notnull " : return ( $ this -> raiseError ( MDB_ERROR_MANAGER , NULL , NULL , 'Check supported changes: it is not supported changes to field not null constraint' ) ) ; case " ChangedDefault " : case " default " : return ( $ this -> raiseError ( MDB_ERROR_MANAGER , NULL , NULL , 'Check supported changes: it is not supported changes to field default value' ) ) ; case " length " : return ( $ this -> raiseError ( MDB_ERROR_MANAGER , NULL , NULL , 'Check supported changes: it is not supported changes to field default length' ) ) ; case " unsigned " : case " type " : case " Declaration " : case " Definition " : break ; default : return ( $ this -> raiseError ( MDB_ERROR_MANAGER , NULL , NULL , 'Check supported changes: it is not supported change of type' . key ( $ changes ) ) ) ; } } return ( MDB_OK ) ; }
check if planned changes are supported
 @param object $db        database object that is extended by this class
 @param string $name name of the database that should be dropped
 @return mixed MDB_OK on success, a MDB error on failure
 @access public
check if planned changes are supported @param object $db database object that is extended by this class @param string $name name of the database that should be dropped @return mixed MDB_OK on success a MDB error on failure @access public