Dutch PHP Conference 2027

Yaf_Request_Abstract::isDispatched

(Yaf >=1.0.0)

Yaf_Request_Abstract::isDispatchedDetermine if the request is dispatched

Опис

public function Yaf_Request_Abstract::isDispatched(): bool

Determine whether the request has been dispatched.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

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

Приклади

Приклад #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());
    }
}
?>

Поданий вище приклад виведе щось схоже на:

bool(true)

Прогляньте також

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top