Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (43 sloc) 1.79 KB

DALMP\Queue

The DALMP\Queue class works as a dispatcher for the current Queue classes, following a common interface in order to maintain compatibility with other DALMP classes.

Object interfaces allow you to create code which specifies which methods a class must implement, without having to define how these methods are handled.

.. seealso::

   `PHP Object Interfaces <http://www.php.net/manual/en/language.oop5.interfaces.php>`_.


Parameters

DALMP\Queue(object)
object:An QueueInterface instance.

Why?

There are times where database go down or you can't Insert/Update data into a table because of the 'too many connections mysql'. In this cases a queue always is useful so that you can later process the queries and not lose important data.

Example

See also

.. toctree::
   :maxdepth: 2

   queue/QueueInterface
   queue/SQLite

Note

The Dalmp\Queue has no dependency with the DALMP\Database class, this means that you can use only the Database or the Queue classes with out need to depend on eitherone.