Detector
class Detector implements ApplicationAwareInterface, SiteAggregateInterface (View source)
Traits
Trait ApplicationAwareTrait A trait used with ApplicationAwareInterface
Properties
| protected Application | $app | from ApplicationAwareTrait | |
| protected bool | $enabled | ||
| protected bool|Section | $preferredSection | ||
| protected Site | $site | 
Methods
Returns the preferred section based on session, cookie, user object, default browser (if allowed), and finally site preferences.
Set the locale associated to the 'site' localization context.
Check if there's some multilingual section.
Check if we can set a session value.
Details
        
                            
    setApplication(Application $app)
        
    
    Setter method for the application
        
                            Site
    getSite()
        
    
    No description
        
                            Section|null
    getPreferredSection()
        
    
    Returns the preferred section based on session, cookie, user object, default browser (if allowed), and finally site preferences.
Since the user's language is not a locale but a language, attempts to determine best section for the given language.
        
                            
    setupSiteInterfaceLocalization(Page $c = null)
        
    
    Set the locale associated to the 'site' localization context.
        
                            bool
    isEnabled()
        
    
    Check if there's some multilingual section.
        
                    protected        bool
    canSetSessionValue()
        
    
    Check if we can set a session value.