[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-includes/ -> gp.php (source)

   1  <?php
   2  /**
   3   * GP class
   4   *
   5   * @package GlotPress
   6   * @since 1.0.0
   7   */
   8  
   9  /**
  10   * Core class used to store singleton instances.
  11   *
  12   * @since 1.0.0
  13   */
  14  class GP {
  15  
  16      /**
  17       * Model for project.
  18       *
  19       * @since 1.0.0
  20       *
  21       * @var GP_Project
  22       */
  23      public static $project;
  24  
  25      /**
  26       * Model for transalation set.
  27       *
  28       * @since 1.0.0
  29       *
  30       * @var GP_Translation_Set
  31       */
  32      public static $translation_set;
  33  
  34      /**
  35       * Model for permission.
  36       *
  37       * @since 1.0.0
  38       *
  39       * @var GP_Permission
  40       */
  41      public static $permission;
  42  
  43      /**
  44       * Model for validator permission.
  45       *
  46       * @since 1.0.0
  47       *
  48       * @var GP_Validator_Permission
  49       */
  50      public static $validator_permission;
  51  
  52      /**
  53       * Model for administrator permission.
  54       *
  55       * @since 1.0.0
  56       *
  57       * @var GP_Administrator_Permission
  58       */
  59      public static $administrator_permission;
  60  
  61      /**
  62       * Model for translation.
  63       *
  64       * @since 1.0.0
  65       *
  66       * @var GP_Translation
  67       */
  68      public static $translation;
  69  
  70      /**
  71       * Model for original.
  72       *
  73       * @since 1.0.0
  74       *
  75       * @var GP_Original
  76       */
  77      public static $original;
  78  
  79      /**
  80       * Model for glossary.
  81       *
  82       * @since 1.0.0
  83       *
  84       * @var GP_Glossary
  85       */
  86      public static $glossary;
  87  
  88      /**
  89       * Model for glossary entry.
  90       *
  91       * @since 1.0.0
  92       *
  93       * @var GP_Glossary_Entry
  94       */
  95      public static $glossary_entry;
  96  
  97      /**
  98       * Singleton for router.
  99       *
 100       * @since 1.0.0
 101       *
 102       * @var GP_Router
 103       */
 104      public static $router;
 105  
 106      /**
 107       * Singleton for translation warnings.
 108       *
 109       * @since 1.0.0
 110       *
 111       * @var GP_Translation_Warnings
 112       */
 113      public static $translation_warnings;
 114  
 115      /**
 116       * Singleton for built-in translation warnings.
 117       *
 118       * @since 1.0.0
 119       *
 120       * @var GP_Builtin_Translation_Warnings
 121       */
 122      public static $builtin_translation_warnings;
 123  
 124      /**
 125       * Array of notices.
 126       *
 127       * @since 1.0.0
 128       *
 129       * @var array
 130       */
 131      public static $redirect_notices = array();
 132  
 133      /**
 134       * Holds the current route.
 135       *
 136       * @since 1.0.0
 137       *
 138       * @var string|null
 139       */
 140      public static $current_route = null;
 141  
 142      /**
 143       * Array of available formats.
 144       *
 145       * @since 1.0.0
 146       *
 147       * @var GP_Format[]
 148       */
 149      public static $formats;
 150  
 151      /**
 152       * Array of enqueued style sheets.
 153       *
 154       * @since 2.2.0
 155       *
 156       * @var array
 157       */
 158      public static $styles = array();
 159  
 160      /**
 161       * Array of enqueued scripts.
 162       *
 163       * @since 2.2.0
 164       *
 165       * @var array
 166       */
 167      public static $scripts = array();
 168  }


Generated: Sat Nov 23 01:01:06 2024 Cross-referenced by PHPXref 0.7.1