Solar_Sql_Select::_nameCols()

protected array Solar_Sql_Select::_nameCols ( string|Solar_Sql_Model $spec , string|array $cols )

Support method for finding a table name and column names.

Parameters

  • (string|Solar_Sql_Model) $spec: The specification for the table name; if a model object, returns the $table_name property.

  • (string|array) $cols: The columns to use from the table; if '*' and the $spec is a model object, returns an array of all columns for the model's table.

Returns

  • (array) A sequential array where element 0 is the table name, and element 1 is the table columns.

Description

Support method for finding a table name and column names.



Local