Page MenuHomePhabricator
Paste P110

(An Untitled Masterwork)
ActivePublic

Authored by stwalkerster on Feb 8 2017, 9:21 PM.
$query = $this->buildQuery(array('*'));
$query .= $this->applyOrder();
// shuffle around hackily TODO: fix this abomination
$localParameterList = $this->parameterList;
$this->parameterList = array();
$query .= $this->applyLimit();
$limitParameters = $this->parameterList;
$statement = $this->database->prepare($query);
$countStatement = $this->database->prepare($countQuery);
$result = array();
foreach ($values as $v) {
// reset parameter list
$params = $localParameterList;
$params[] = $v;
$countStatement->execute($params);
// reapply the limit parameters
$params = array_merge($params, $limitParameters);
$statement->execute($params);

Event Timeline

stwalkerster created this object with visibility "Public (No Login Required)".