| @@ 46-58 (lines=13) @@ | ||
| 43 | * @param string $scope |
|
| 44 | * @return \Zend\Db\ResultSet\ResultSet |
|
| 45 | */ |
|
| 46 | public function fetchAll($scope = '') |
|
| 47 | { |
|
| 48 | $resultSet = $this->tableGateway->select( |
|
| 49 | function (Select $select) use ($scope) { |
|
| 50 | if (!empty($scope)) { |
|
| 51 | $select->where('scope = \''.$scope.'\'')->order('type, name ASC'); |
|
| 52 | } else { |
|
| 53 | $select->order('name ASC'); |
|
| 54 | } |
|
| 55 | } |
|
| 56 | ); |
|
| 57 | return $resultSet; |
|
| 58 | } |
|
| 59 | ||
| 60 | /** |
|
| 61 | * |
|
| @@ 31-43 (lines=13) @@ | ||
| 28 | $this->tableGateway = $tableGateway; |
|
| 29 | } |
|
| 30 | ||
| 31 | public function fetchAll($scope = '') |
|
| 32 | { |
|
| 33 | $resultSet = $this->tableGateway->select( |
|
| 34 | function (Select $select) use ($scope) { |
|
| 35 | if (!empty($scope)) { |
|
| 36 | $select->where('scope = \''.$scope.'\'')->order('type, name ASC'); |
|
| 37 | } else { |
|
| 38 | $select->order('name ASC'); |
|
| 39 | } |
|
| 40 | } |
|
| 41 | ); |
|
| 42 | return $resultSet; |
|
| 43 | } |
|
| 44 | ||
| 45 | public function fetchApplication() |
|
| 46 | { |
|
| @@ 31-43 (lines=13) @@ | ||
| 28 | $this->tableGateway = $tableGateway; |
|
| 29 | } |
|
| 30 | ||
| 31 | public function fetchAll($scope = '') |
|
| 32 | { |
|
| 33 | $resultSet = $this->tableGateway->select( |
|
| 34 | function (Select $select) use ($scope) { |
|
| 35 | if (!empty($scope)) { |
|
| 36 | $select->where('scope = \''.$scope.'\'')->order('type, name ASC'); |
|
| 37 | } else { |
|
| 38 | $select->order('type, name ASC'); |
|
| 39 | } |
|
| 40 | } |
|
| 41 | ); |
|
| 42 | return $resultSet; |
|
| 43 | } |
|
| 44 | ||
| 45 | public function fetchApplication() |
|
| 46 | { |
|