\Application\ServiceTotemService

Class TotemService

Summary

Methods
Properties
Constants
setServiceLocator()
getServiceLocator()
generateTicket()
getContatoreLocale()
getContatoreGlobale()
No public properties found
No constants found
No protected methods found
$_ServiceLocator
N/A
No private methods found
No private properties found
N/A

Properties

$_ServiceLocator

$_ServiceLocator : \Zend\ServiceManager\ServiceLocatorInterface

Type

\Zend\ServiceManager\ServiceLocatorInterface

Methods

setServiceLocator()

setServiceLocator(\Zend\ServiceManager\ServiceLocatorInterface  $ServiceLocator) 

Parameters

\Zend\ServiceManager\ServiceLocatorInterface $ServiceLocator

getServiceLocator()

getServiceLocator() : \Zend\ServiceManager\ServiceLocatorInterface

Returns

\Zend\ServiceManager\ServiceLocatorInterface

generateTicket()

generateTicket(array  $data) 

Metodo che gestisce l'aggiornamento e il ritorno delle informazioni sul nuovo ticket generato dal totem

Il metodo esegue i seguenti passi:

  • recupera i model dei ticket, trackingTicket e modalità;
  • recupera le informazioni sulla modalità e sul contatore locale e genera il codice del ticket tramite nome della modalità e contatore locale (ad. es A0001);
  • inserisce le informazioni sul nuovo ticket generato nel database
  • inserisce le informazioni sul tracking del nuovo ticket generato nel database;
  • ritorna il ticket

Parameters

array $data

| informazioni sul ticket

getContatoreLocale()

getContatoreLocale(array  $data = array()) : integer

Parameters

array $data

Returns

integer

getContatoreGlobale()

getContatoreGlobale() : integer

Returns

integer