[ Index ]

PHP Cross Reference of YOURLS

title

Body

[close]

/includes/Config/ -> InitDefaults.php (source)

   1  <?php
   2  
   3  /**
   4   * YOURLS defaut actions upon instantiating
   5   *
   6   * This class defines all the default actions to be performed when instantiating YOURLS. The idea
   7   * is that this is easily tuneable depending on the scenario, namely when running YOURLS for
   8   * unit tests.
   9   *
  10   * @see \YOURLS\Config\Init
  11   */
  12  
  13  namespace YOURLS\Config;
  14  
  15  class InitDefaults {
  16  
  17      /**
  18       * Whether to include core function files
  19       * @var bool
  20       */
  21      public $include_core_funcs = true;
  22  
  23      /**
  24       * Whether to set default time zone
  25       * @var bool
  26       */
  27      public $default_timezone = true;
  28  
  29      /**
  30       * Whether to load default text domain
  31       * @var bool
  32       */
  33      public $load_default_textdomain = true;
  34  
  35      /**
  36       * Whether to check for maintenance mode and maybe die here
  37       * @var bool
  38       */
  39      public $check_maintenance_mode = true;
  40  
  41      /**
  42       * Whether to fix $_REQUEST for IIS
  43       * @var bool
  44       */
  45      public $fix_request_uri = true;
  46  
  47      /**
  48       * Whether to redirect to SSL if needed
  49       * @var bool
  50       */
  51      public $redirect_ssl = true;
  52  
  53      /**
  54       * Whether to include DB engine
  55       * @var bool
  56       */
  57      public $include_db = true;
  58  
  59      /**
  60       * Whether to include cache layer
  61       * @var bool
  62       */
  63      public $include_cache = true;
  64  
  65      /**
  66       * Whether to end instantiating early if YOURLS_FAST_INIT is defined and true
  67       * @var bool
  68       */
  69      public $return_if_fast_init = true;
  70  
  71      /**
  72       * Whether to read all options at once during starting
  73       * @var bool
  74       */
  75      public $get_all_options = true;
  76  
  77      /**
  78       * Whether to register shutdown action
  79       * @var bool
  80       */
  81      public $register_shutdown = true;
  82  
  83      /**
  84       * Whether to trigger action 'init' after core is loaded
  85       * @var bool
  86       */
  87      public $core_loaded = true;
  88  
  89      /**
  90       * Whether to redirect to install procedure if needed
  91       * @var bool
  92       */
  93      public $redirect_to_install = true;
  94  
  95      /**
  96       * Whether to redirect to upgrade procedure if needed
  97       * @var bool
  98       */
  99      public $check_if_upgrade_needed = true;
 100  
 101      /**
 102       * Whether to load all plugins
 103       * @var bool
 104       */
 105      public $load_plugins = true;
 106  
 107      /**
 108       * Whether to trigger the "plugins_loaded" action
 109       * @var bool
 110       */
 111      public $plugins_loaded_action = true;
 112  
 113      /**
 114       * Whether to check if a new version if available
 115       * @var bool
 116       */
 117      public $check_new_version = true;
 118  
 119      /**
 120       * Whether to trigger 'admin_init' if applicable
 121       * @var bool
 122       */
 123      public $init_admin = true;
 124  
 125  }


Generated: Sat Feb 22 05:10:06 2025 Cross-referenced by PHPXref 0.7.1