getSelectColumns

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');

Suggest an improvement