API CHANGE: Public visibility on DataQuery::selectField

It doesn't seem appropriate to hide this method from the public space. It precludes the user from customising queries in a DataList.

```php
$mylist->alterDataquery(function($query) {
    $query->selectField("225,300,000km", "DistanceToMars");
});
```
This commit is contained in:
Uncle Cheese 2015-03-26 10:58:56 +13:00
parent b2afc9fb52
commit 7f5608c599

View File

@ -789,7 +789,7 @@ class DataQuery {
* @param $fieldExpression String The field to select (escaped SQL statement)
* @param $alias String The alias of that field (escaped SQL statement)
*/
protected function selectField($fieldExpression, $alias = null) {
public function selectField($fieldExpression, $alias = null) {
$this->query->selectField($fieldExpression, $alias);
}