symfony API

sfCallable Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.2 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.2 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfCallable represents a PHP callable.

Method Summary

  • call()
    Calls the current callable with the given arguments.
  • mixed getCallable()
    Returns the current callable.
  • __construct($callable)
    Constructor.

Method Details

  • call () Browse code

    Calls the current callable with the given arguments.


    The callable is called with the arguments given to this method.

    This method throws an exception if the callable is not valid. This check is not done during the object construction to allow you to load the callable as late as possible.

  • (mixed) getCallable () Browse code

    Returns the current callable.

    returns The current callable

  • __construct ($callable) Browse code

    $callable A valid PHP callable (must be valid when calling the call() method)

    Constructor.