Page MenuHomePhabricator
Authored By
stwalkerster
Feb 8 2017, 9:21 PM
Size
818 B
Referenced Files
None
Subscribers
None
$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);

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7990
Default Alt Text
(818 B)

Event Timeline