/** * Constructs the class and sets all properties. */ private function __construct() { // Main Config Instance $config = Config::getInstance(); // Core Registrar Class $this->registrar = Registrar::getInstance(); // Customizer Service Class $this->customizer = MakesCustomizerFields::getInstance(); // Customizer settings from the config file. $this->customizer_config = $config->getCustomizerConfig(); // Prefix that will be used for everything in the database. $this->setting_prefix = $config->getFrameworkConfig('setting_prefix'); // Storage type for different settings. $this->storage_type = array('customizer_settings' => $config->getFrameworkConfig('save_customizer_settings_as'), 'module_settings' => $config->getFrameworkConfig('save_module_settings_as')); }
public function __construct() { // Sets the instance of the customizer that called this class to a property. $this->customizer_class = MakesCustomizerFields::getInstance(); }