getSelectColumns

Welcome to the MODX Documentation. It is an ongoing effort of the MODX community. If you would like to participate or if you notice any errors or missing content, please let us know.

xPDOObject::getSelectColumns()

Get a set of column names from an xPDOObject for use in SQL queries.

Syntax

API Docs: http://api.modxcms.com/xpdo/om/xPDOObject.html#getSelectColumns

static string getSelectColumns (
   xPDO &$xpdo,
   string $className,
   [string $tableAlias = ''],
   [string $columnPrefix = ''],
   [array $columns = array ()],
   [boolean $exclude = false]
)

Examples

$columnString = xPDOObject::getSelectColumns($xpdo,'modChunk');