Yaf_Request_Http
PHP Manual

Yaf_Request_Http::isXmlHttpRequest

(PECL yaf >=1.0.0)

Yaf_Request_Http::isXmlHttpRequestWhether a Ajax Request

Opis

public bool Yaf_Request_Http::isXmlHttpRequest ( void )

Check the request whether it is a Ajax Request.

Informacja:

This method depends on the request header: HTTP_X_REQUESTED_WITH, some Javascript library doesn't set this header while doing Ajax request

Parametry

Ta funkcja nie posiada parametrów.

Zwracane wartości


Yaf_Request_Http
PHP Manual