本文整理匯總了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);
}