Solar_Sql_Adapter::_splitSchemaIdent PHP Méthode

_splitSchemaIdent() protected méthode

Splits a schema.table identifier into its component parts.
protected _splitSchemaIdent ( string $spec ) : array
$spec string The `table` or `schema.table` identifier.
Résultat array A sequential array where element 0 is the schema and element 1 is the table name.
    protected function _splitSchemaIdent($spec)
    {
        $pos = strpos($spec, '.');
        if ($pos !== false) {
            $schema = substr($spec, 0, $pos);
            $ident = substr($spec, $pos + 1);
        } else {
            $schema = null;
            $ident = $spec;
        }
        return array($schema, $ident);
    }