Exemplo n.º 1
0
 protected function loadPage()
 {
     $question = new PonderQuestion();
     $conn_r = $question->establishConnection('r');
     $data = queryfx_all($conn_r, 'SELECT q.* FROM %T q %Q %Q %Q %Q', $question->getTableName(), $this->buildJoinsClause($conn_r), $this->buildWhereClause($conn_r), $this->buildOrderClause($conn_r), $this->buildLimitClause($conn_r));
     return $question->loadAllFromArray($data);
 }
Exemplo n.º 2
0
 public function execute()
 {
     $question = new PonderQuestion();
     $conn_r = $question->establishConnection('r');
     $where = $this->buildWhereClause($conn_r);
     $order_by = $this->buildOrderByClause($conn_r);
     $limit = $this->buildLimitClause($conn_r);
     return $question->loadAllFromArray(queryfx_all($conn_r, 'SELECT q.* FROM %T q %Q %Q %Q', $question->getTableName(), $where, $order_by, $limit));
 }