Locale
class Locale implements LocaleInterface, TreeInterface (View source)
Represents a site locale.
Traits
Properties
| protected | $msLanguage | from LocaleTrait | |
| protected | $msCountry | from LocaleTrait | |
| protected | $msNumPlurals | from LocaleTrait | |
| protected | $msPluralRule | from LocaleTrait | |
| protected | $msPluralCases | from LocaleTrait | |
| protected | $siteLocaleID | ||
| protected | $site | ||
| protected | $tree | ||
| $msIsDefault | 
Methods
Get the site locale record identifier (or NULL if the record has not been saved yet).
Is this the default locale?
Is this the default locale?
Get the site tree associated to this locale.
No description
No description
Details
        
                            mixed
    getLanguage()
        
    
    No description
        
                            
    setLanguage(mixed $msLanguage)
        
    
    No description
        
                            mixed
    getCountry()
        
    
    No description
        
                            
    setCountry(mixed $msCountry)
        
    
    No description
        
                            mixed
    getNumPlurals()
        
    
    No description
        
                            
    setNumPlurals(mixed $msNumPlurals)
        
    
    No description
        
                            mixed
    getPluralRule()
        
    
    No description
        
                            
    setPluralRule(mixed $msPluralRule)
        
    
    No description
        
                            mixed
    getPluralCases()
        
    
    No description
        
                            
    setPluralCases(mixed $msPluralCases)
        
    
    No description
        
                            
    getLocale()
        
    
    No description
        
                            
    getLanguageText($locale = null)
        
    
    No description
        
                            
    getExporter()
        
    
    No description
        
                            
    getLocaleID()
        
    
    Get the site locale record identifier (or NULL if the record has not been saved yet).
        
                            bool
    getIsDefault()
        
    
    Is this the default locale?
        
                            
    setIsDefault(bool $msIsDefault)
        
    
    Is this the default locale?
        
                            Site|null
    getSite()
        
    
    Get the site associated to this locale.
        
                            
    setSite(Site $site = null)
        
    
    Set the site associated to this locale.
        
                            SiteTree|null
    getSiteTree()
        
    
    Get the site tree associated to this locale.
        
                            
    setSiteTree(SiteTree $tree = null)
        
    
    Set the site tree associated to this locale.
        
                            int|null
    getSiteTreeID()
        
    
    No description
        
                            Tree|null
    getSiteTreeObject()
        
    
    No description