This is the old documentation center for eZ Publish 4. We are currently migrating the eZ Publish documentation to http://confluence.ez.no the eZ Publish 5 documentation platform. Documentation for the eZ Publish legacy components are still located on this site, as well as all documentation for earlier releases.

queueReader handler

This handler is the one in charge of reading from the queue and deciding what content is given to the queue handler. A default queueReader handler is provided with your default eZ Publish distribution. It simply reads the oldest inactive
item from the processes queue, and returns it.

It can be changed to a new one by implementing the "ezpContentPublishingQueueReaderInterface" and configuring the new class in "content.ini".

Here is a possible class definition::

    <?php
    class myPublishingQueue implements ezpContentPublishingQueueReaderInterface
    {
        public static function next()
        {
            // do your deeds...
            if ( $process )
                return $process;
           else
                return false;
        }
 
    ?>

And the matching INI (content.ini) configuration:

[PublishingSettings]
AsynchronousPublishingQueueReader=myContentPublishingQueue

Geir Arne Waaler (04/03/2011 2:40 pm)

Geir Arne Waaler (22/03/2011 2:33 pm)


Comments

There are no comments.