Created
March 24, 2015 02:58
-
-
Save hafriedlander/b0d3191ff2a735684eab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class HackedDataQuery extends DataQuery { | |
public function __construct($dataQuery) { | |
$this->dataClass = $dataQuery->dataClass; | |
$this->query = $dataQuery->query; | |
} | |
public function selectField($fieldExpression, $alias = null) { | |
parent::selectField($fieldExpression, $alias); | |
} | |
} | |
$list->alterDataQuery(function($query, $list) { | |
$query = new HackedDataQuery($query); | |
$query->selectField("YouJustMadeABaby", "Cry"); | |
return $query; | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment