Yaf_Request_Abstract::isDispatched

Determine if the request is dispatched

Description

public bool Yaf_Request_Abstract::isDispatched()

Determine whether the request has been dispatched.

Parameters

This function has no parameters.

Return Values

Returns true if the request has been dispatched, false otherwise.

Examples

Example #1 Yaf_Request_Abstract::isDispatched example

<?php
class IndexController extends Yaf_Controller_Abstract
{
    public function indexAction()
    {
        // Stop the dispatch loop, no further action will be dispatched
        $this->getRequest()->setDispatched();

        var_dump($this->getRequest()->isDispatched());
    }
}
?>

The above example will output something similar to:

bool(true)

See Also

  • Yaf_Dispatcher::dispatch
  • Yaf_Request_Abstract::setDispatched