Solar_Sql_Select::_origAlias()

protected array Solar_Sql_Select::_origAlias ( string $name )

Returns an identifier as an "original" name and an "alias".

Parameters

  • (string) $name: The string identifier.

Returns

  • (array) The $name string as an array with keys 'name' and 'alias'.

Description

Returns an identifier as an "original" name and an "alias".

Effectively splits the identifier at "AS", so that "foo AS bar" becomes array('orig' => 'foo', 'alias' => 'bar').



Local