kernel/private/classes/ezpmobiledevicedetect.php
public static function isEnabled()
    {
        if ( eZINI::instance()->variable( 'SiteAccessSettings', 'DetectMobileDevice' ) === 'enabled' )
        {
            $mobileSaList = eZINI::instance()->variable( 'SiteAccessSettings', 'MobileSiteAccessList' );

            if ( !empty( $mobileSaList ) )
            {
                return true;
            }
            else
            {
                eZDebug::writeError(
                    "DetectMobileDevice is enabled and MobileSiteAccessList is empty, please check your site.ini configuration",
                    __METHOD__
                );
            }
        }

        return false;
    }
public static function isEnabled()
    {
        if ( eZINI::instance()->variable( 'SiteAccessSettings', 'DetectMobileDevice' ) === 'enabled' )
        {
            $mobileSaList = eZINI::instance()->variable( 'SiteAccessSettings', 'MobileSiteAccessList' );

            if ( !empty( $mobileSaList ) )
            {
                return true;
            }
            else
            {
                eZDebug::writeError(
                    "DetectMobileDevice is enabled and MobileSiteAccessList is empty, please check your site.ini configuration",
                    __METHOD__
                );
            }
        }

        return false;
    }
public static function isEnabled ( ) { if ( eZINI :: instance ( ) -> variable ( 'SiteAccessSettings' , 'DetectMobileDevice' ) === 'enabled' ) { $ mobileSaList = eZINI :: instance ( ) -> variable ( 'SiteAccessSettings' , 'MobileSiteAccessList' ) ; if ( ! empty ( $ mobileSaList ) ) { return true ; } else { eZDebug :: writeError ( "DetectMobileDevice is enabled and MobileSiteAccessList is empty, please check your site.ini configuration" , __METHOD__ ) ; } } return false ; }
Checks whether mobile device detection is enabled or not

@static
@return bool
Checks whether mobile device detection is enabled or not