Proposal for "PHP_Callback"

» Metadata » Status
» Description
This package provides a wrapper around the callback PHP pseudo-type. The aims of this package are to:

  1. Provide a PHP object around the callback pseudo-type for type hinting
  2. Provide a means to validate that a callback is valid when it is created
  3. Provide a means to attach persistent parameters to a given callback

This can be considered a Command object in that it represents an action within the PHP user-land.
» Dependencies » Links
  • PEAR (specifically the PEAR_Exception class)
  • >= PHP 5
» Timeline » Changelog
  • First Draft: 2007-05-02
  • Proposal: 2007-05-02
  • Call for Votes: 2007-05-29
  • Travis Swicegood
    [2007-05-07 17:35 UTC]

    Added a link to the latest generated documentation which includes a few additional methods after receiving some feedback on the package.

    New methods include:
    bool is() - takes same parameters as construct
    bool isFunction()
    bool isObject()
    bool isStatic()
    bool doesImplement($implements)