Yaf_Request_Http::isXmlHttpRequest

(Yaf >=1.0.0)

Yaf_Request_Http::isXmlHttpRequestDetermin if request is Ajax Request

Descrierea

public Yaf_Request_Http::isXmlHttpRequest ( void ) : bool

Check the request whether it is a Ajax Request.

Notă:

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

Parametri

Această funcție nu are parametri.

Valorile întoarse

boolean