/**
  * Register plugins in {@link $classes} during initialization.
  * @access private
  */
 protected function _initialize_class_registry()
 {
     parent::_initialize_class_registry();
     $this->register_class('PAGE', 'THEMED_PAGE', 'webcore/sys/themed_page.php');
 }
示例#2
0
 /**
  * Add classes to the {@link $classes} object factory.
  * @access private
  */
 protected function _initialize_class_registry()
 {
     parent::_initialize_class_registry();
     $this->register_class('FILE_TYPE_MANAGER', 'INI_FILE_TYPE_MANAGER', 'webcore/util/file_type_manager.php');
     $this->register_class('MAIL_PROVIDER', 'DEFAULT_PHP_MAIL_PROVIDER', 'webcore/mail/default_php_mail_provider.php');
     $this->register_class('TEST_SUITE', 'INI_TEST_SUITE', 'webcore/util/test_suite.php');
     $this->register_class('CAPTCHA', 'NUMERIC_CAPTCHA', 'webcore/util/captcha.php');
 }
 public function __construct()
 {
     $this->date_time_toolkit = global_date_time_toolkit();
     $this->file_options = global_file_options();
     $this->url_options = global_url_options();
     $this->logs = new LOGGER_CONTAINER();
     parent::__construct();
     $this->auto_detect_os();
     /* server-local paths */
     $this->set_path(Folder_name_system_temp, temp_folder());
     $this->set_forced_root(Folder_name_system_temp, false);
     $this->set_path(Folder_name_logs, '/var/log');
     $this->set_forced_root(Folder_name_logs, false);
     /* URLs */
     $this->set_path(Folder_name_root, '/');
     $this->set_path(Folder_name_resources, '{' . Folder_name_root . '}');
     $this->set_path(Folder_name_apps, '{' . Folder_name_root . '}');
     $this->set_path(Folder_name_data, '{' . Folder_name_root . '}data');
     $this->set_path(Folder_name_pages, '{' . Folder_name_resources . '}');
     $this->set_path(Folder_name_functions, '{' . Folder_name_pages . '}');
     $this->set_path(Folder_name_icons, '{' . Folder_name_resources . '}icons');
     $this->set_path(Folder_name_styles, '{' . Folder_name_resources . '}styles');
     $this->set_path(Folder_name_themes, '{' . Folder_name_styles . '}themes');
     $this->set_path(Folder_name_scripts, '{' . Folder_name_resources . '}scripts');
     $this->set_extension(Folder_name_themes, 'css');
     $this->set_extension(Folder_name_styles, 'css');
     $this->set_extension(Folder_name_scripts, 'js');
     $this->set_extension(Folder_name_icons, 'png');
     /* Set up the path to the library. */
     $url = new FILE_URL(realpath(__FILE__));
     $url->strip_name();
     $url->go_back();
     $url->go_back();
     $this->library_path = $url->as_text();
 }