예제 #1
0
 /**
  * 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);
 }