Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

columns_in()

Description

Returns a comma separated list of table columns from the given table. Optionally, will use an alias instead of the table name to prefix the columns. For inclusion in SQL to replace "select " which is not supported when using prepared statements.

Parameters

ColumnTypeDefaultDescription
$table string The source table
$alias string null Optionally, a different alias to use
$plugin string null Specifies that this table is defined in a plugin with the supplied name
$return_list bool false Set to true to return a list of column names. Note: the alias is ignored in this mode.

Return

string|array

This article was last updated 19th March 2024 05:35 Europe/London time based on the source file dated 8th March 2024 15:10 Europe/London time.