Perforce Chronicle 2012.2/486814
API Documentation

Cron_Module Class Reference

Integrates cron module with the rest of the application. More...

Inheritance diagram for Cron_Module:
P4Cms_Module_Integration

List of all members.

Static Public Member Functions

static load ()
 Integrate cron module with the rest of the application.

Detailed Description

Integrates cron module with the rest of the application.

Copyright:
2011-2012 Perforce Software. All rights reserved
License:
Please see LICENSE.txt in top-level folder of this distribution.
Version:
2012.2/486814

Member Function Documentation

static Cron_Module::load ( ) [static]

Integrate cron module with the rest of the application.

Reimplemented from P4Cms_Module_Integration.

    {
        // remove cron entries from pull operations.
        P4Cms_PubSub::subscribe(
            'p4cms.site.branch.pull.groupPaths',
            function($paths, $source, $target, $result)
            {
                $paths->getPaths()->filter(
                    'depotFile',
                    $target->getId() . '/cron/',
                    array(
                        P4Cms_Model_Iterator::FILTER_STARTS_WITH,
                        P4Cms_Model_Iterator::FILTER_INVERSE
                    )
                );
            }
        );
    }

The documentation for this class was generated from the following file: