Example #1
0
 /** Returns service
  * @return array
  */
 public function getServices()
 {
     $this->_error = '';
     $services = array();
     $time = time();
     if ($this->resultLogin) {
         try {
             $listServices = $this->ePSFacade->listServices($time);
             if ($listServices) {
                 foreach ($listServices as $service) {
                     if ($service->getTypeId() == 26 || $service->getTypeId() == 36) {
                         continue;
                     }
                     $services[$service->getTypeId()] = $service->getName();
                 }
             }
         } catch (\Exception $e) {
             $this->_error = $e->getMessage();
             $this->log->addError('Speedy :: getServices :: ' . $e->getMessage());
         }
     }
     return $services;
 }