fetchAll() public method

Retrieve all named adapters
public fetchAll ( ) : array
return array
コード例 #1
0
 /**
  * @param array $params
  * @return array|Response
  */
 public function fetchAll($params = [])
 {
     if (!isset($this->loadedModules['ZF\\Apigility\\Doctrine\\Admin']) || !isset($this->loadedModules['ZF\\Apigility\\Doctrine\\Server'])) {
         $response = new Response();
         $response->setStatusCode(204);
         return $response;
     }
     if (false === ($adapters = $this->model->fetchAll($params))) {
         return [];
     }
     return $adapters;
 }
コード例 #2
0
 /**
  * @param array $params
  * @return array
  */
 public function fetchAll($params = [])
 {
     $modules = $this->getServiceLocator()->get('ModuleManager');
     $loaded = $modules->getLoadedModules(false);
     if (!isset($loaded['ZF\\Apigility\\Doctrine\\Admin']) || !isset($loaded['ZF\\Apigility\\Doctrine\\Server'])) {
         $response = new Response();
         $response->setStatusCode(204);
         return $response;
     }
     if (false === ($adapters = $this->model->fetchAll($params))) {
         return [];
     }
     return $adapters;
 }
コード例 #3
0
 public function fetchAll($params = [])
 {
     return $this->model->fetchAll();
 }