Gdn_Locale::__construct PHP Method

__construct() public method

Setup the default locale.
public __construct ( $LocaleName, $addonManager = null )
$LocaleName
    public function __construct($LocaleName, $addonManager = null)
    {
        parent::__construct();
        $this->ClassName = __CLASS__;
        if ($addonManager instanceof AddonManager) {
            $this->addonManager = $addonManager;
        }
        $this->set($LocaleName);
    }

Usage Example

Esempio n. 1
0
 public function __construct($LocaleName = Null, $ApplicationWhiteList = Null, $PluginWhiteList = Null, $ForceRemapping = False)
 {
     // If called from PluginManager::GetPluginInstance()
     // Do nothing.
     if ($LocaleName === Null) {
         return;
     }
     parent::__construct($LocaleName, $ApplicationWhiteList, $PluginWhiteList, $ForceRemapping);
 }