Perforce Chronicle 2012.2/486814
API Documentation

P4Cms_Validate_Callback Class Reference

Specialized version of Zend_Validate_Callback that allows construction without a callback function. More...

List of all members.

Public Member Functions

 __construct ($callback=null)
 Make callback optional.

Detailed Description

Specialized version of Zend_Validate_Callback that allows construction without a callback function.

This is useful when the callback function wants a reference to the validator.

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

Constructor & Destructor Documentation

P4Cms_Validate_Callback::__construct ( callback = null)

Make callback optional.

Parameters:
callable | null$callbackthe callback to use or null
    {
        if ($callback) {
            parent::__construct($callback);
        }
    }

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