protected getCatalogSchemaTableName ( $table ) : array | ||
return | array | tuple($catalogName,$schemaName,$tableName) |
protected function getCatalogSchemaTableName($table)
{
//remove possible delimiters
$result = explode('.', preg_replace('/\\[|\\]|"/', '', $table));
if (count($result) === 1) {
return array(null, null, $result[0]);
}
if (count($result) === 2) {
return array(null, $result[0], $result[1]);
}
if (count($result) > 2) {
return array($result[0], $result[1], $result[2]);
}
}