Yaf_Request_Abstract::isDispatched
PHP Manual
PHP Manual»Yaf_Request_Abstract»Yaf_Request_Abstract::isDispatched

Yaf_Request_Abstract::isDispatched

(Yaf >=1.0.0)

Yaf_Request_Abstract::isDispatched — Determine if the request is dispatched

Açıklama

public function Yaf_Request_Abstract::isDispatched(): bool

Determine whether the request has been dispatched.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

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

Örnekler

Örnek 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());
    }
}
?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

bool(true)

Ayrıca Bakınız

To Top