/**
  * Initialize the core Registrar class that will register everything.
  */
 public function initializeFrameworkRegistration()
 {
     // Initializes the main class responsible for registering all options of the Framework.
     $this->registrar = Registrar::getInstance();
     $this->registrar->init();
     $this->settings->addRegisteredSettings();
 }
 /**
  * Called by the framework after everything is registered.
  */
 public function addRegisteredSettings()
 {
     // Registered Categories
     $registrar = Registrar::getInstance();
     $this->registered_categories = array_keys($registrar->getRegisteredModules());
     // Registered Settings
     $this->registered_settings = array_keys($registrar->getRegisteredSettings());
     // Registered Customizer Settings
 }
 /**
  * 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'));
 }