public function isMobile()
    {
        deprecationWarning(
            'RequestHandlerComponent::isMobile() is deprecated. Use ServerRequest::is(\'mobile\') instead.'
        );

        $request = $this->getController()->getRequest();

        return $request->is('mobile') || $this->accepts('wap');
    }
public function isMobile()
    {
        deprecationWarning(
            'RequestHandlerComponent::isMobile() is deprecated. Use ServerRequest::is(\'mobile\') instead.'
        );

        $request = $this->getController()->getRequest();

        return $request->is('mobile') || $this->accepts('wap');
    }
public function isMobile ( ) { deprecationWarning ( 'RequestHandlerComponent::isMobile() is deprecated. Use ServerRequest::is(\'mobile\') instead.' ) ; $ request = $ this -> getController ( ) -> getRequest ( ) ; return $ request -> is ( 'mobile' ) || $ this -> accepts ( 'wap' ) ; }
Returns true if user agent string matches a mobile web browser, or if the
client accepts WAP content.

@return bool True if user agent is a mobile web browser
@deprecated 3.7.0 Use ServerRequest::is('mobile') instead.
Returns true if user agent string matches a mobile web browser or if the client accepts WAP content .