Solar_Sql_Adapter::_checkIdentifier PHP Méthode

_checkIdentifier() protected méthode

Throws an exception on failure.
protected _checkIdentifier ( string $type, string $name ) : void
$type string The indentifier type: table, index, sequence, etc.
$name string The identifier name to check.
Résultat void
    protected function _checkIdentifier($type, $name)
    {
        if ($type == 'column') {
            $this->_checkIdentifierColumn($name);
        } else {
            list($schema, $ident) = $this->_splitSchemaIdent($name);
            if ($schema) {
                $this->_checkIdentifierPart($type, $name, $schema);
            }
            $this->_checkIdentifierPart($type, $name, $ident);
        }
    }