Esempio n. 1
0
 /**
  * @param int $currentPage
  * @return $this
  */
 public function setCurrentPage($currentPage)
 {
     if ($currentPage > 0) {
         $this->currentPage = $currentPage;
         $this->qs = $this->qs->byPage($currentPage, $this->getItemsPerPage());
     }
     return $this;
 }
Esempio n. 2
0
 /**
  * @param Metadata $metadata
  * @param QueryBuilder $qb
  * @param Connection $db
  * @param array $fields
  */
 public function __construct(Metadata $metadata, QueryBuilder $qb = null, Connection $db = null, array $fields = null)
 {
     parent::__construct($metadata, $qb, $db);
     $this->selectFields = $fields;
 }