AnsPress_Reputation_Query::prefetch()
Description #
Prefetch related items.
Source #
File: includes/reputation.php
public function prefetch() {
foreach ( (array) $this->reputations as $key => $rep ) {
$event = $this->events[ $rep->rep_event ];
if ( ! isset( $this->ids[ $event['parent'] ] ) ) {
$this->ids[ $event['parent'] ] = array();
}
$this->ids[ $event['parent'] ][] = $rep->rep_ref_id;
$this->reputations[ $key ]->parent = $event['parent'];
$this->pos[ $rep->rep_ref_id ] = $key;
}
$this->prefetch_posts();
$this->prefetch_comments();
}
Expand full source code Collapse full source code View on GitHub: includes/reputation.php:696
Add your comment