本文整理汇总了PHP中xPDOObject::getSelectColumns方法的典型用法代码示例。如果您正苦于以下问题:PHP xPDOObject::getSelectColumns方法的具体用法?PHP xPDOObject::getSelectColumns怎么用?PHP xPDOObject::getSelectColumns使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xPDOObject
的用法示例。
在下文中一共展示了xPDOObject::getSelectColumns方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getSelectColumns
/**
* Gets select columns from a specific class for building a query.
*
* @uses xPDOObject::getSelectColumns()
* @param string $className The name of the class to build the column list
* from.
* @param string $tableAlias An optional alias for the class table, to be
* used in complex queries with multiple tables.
* @param string $columnPrefix An optional string with which to prefix the
* columns returned, to avoid name collisions in return columns.
* @param array $columns An optional array of columns to include.
* @param boolean $exclude If true, will exclude columns in the previous
* parameter, instead of including them.
* @return string A valid SQL string of column names for a SELECT statement.
*/
public function getSelectColumns($className, $tableAlias = '', $columnPrefix = '', $columns = array(), $exclude = false)
{
return xPDOObject::getSelectColumns($this, $className, $tableAlias, $columnPrefix, $columns, $exclude);
}