예제 #1
0
파일: Grid.php 프로젝트: bombush/NatsuCon
 public function getData()
 {
     if ($this->filterState) {
         $this->filter($this->filterState);
     }
     if ($this->sortState) {
         $this->sort($this->sortState);
     }
     return $this->dataSource->fetchAll();
 }
예제 #2
0
 /**
  * @return array
  */
 public function getData()
 {
     return $this->fluent->fetchAll($this->offset, $this->limit);
 }
예제 #3
0
파일: BaseMapper.php 프로젝트: JZechy/ZBox
 /**
  * Vytvoří z DibiFluent pole entit.
  * @param \DibiFluent $datasource
  * @param int|null $limit
  * @param int|null $offset
  * @return IEntity[]
  */
 public function createEntities(\DibiFluent $datasource, $limit = NULL, $offset = NULL)
 {
     $entities = array();
     foreach ($datasource->fetchAll($offset, $limit) as $row) {
         $entities[] = $this->createEntity($row);
     }
     return $entities;
 }