Events
The "svconnector" extension provides a number of events which can be used by the concrete connector implementations. Except is special cases - since all connector services share a common way of working - it should not be necessary to develop custom events.
It is strongly recommended that you trigger these events in your custom connector services, because use case may strongly vary from user to user, and they will welcome the possibility of manipulating the data retrieved by the service in its various forms.
\Cobweb\Svconnector\Event\InitializeConnectorEvent
This event is fired by the initialize
method. It is meant to perform custom
initializations needed by specific uses of the service, and can store results in
the :refconnection information object <developers-
for
dynamic usage in the connector parameters.
\Cobweb\Svconnector\Event\ProcessParametersEvent
This event is fired after :refparameters have been parsed <developers-
and allows for further manipulation of the connector parameters.
\Cobweb\Svconnector\Event\ProcessRawDataEvent
This event is fired after the service has retrieved data in raw format. It is designed
for use in the fetch
method.
\Cobweb\Svconnector\Event\ProcessArrayDataEvent
This event is fired after the service has retrieved data in array format. It is designed
for use in the fetch
method.
\Cobweb\Svconnector\Event\ProcessXmlDataEvent
This event is fired after the service has retrieved data in XML format. It is designed
for use in the fetch
method.
\Cobweb\Svconnector\Event\ProcessResponseEvent
This event is fired after the service has called the distant source and received a
response from that source. It is designed for use in the query
method.
\Cobweb\Svconnector\Event\PostProcessOperationsEvent
This event is fired after all operations have been performed by the connector services.
Actually, it will be triggered only if the code that used the service called the
\Cobweb\
method.