[ 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       * Model for notes.
  99       *
 100       * @since 3.0.0
 101       *
 102       * @var GP_Note
 103       */
 104      public static $notes;
 105  
 106      /**
 107       * Singleton for router.
 108       *
 109       * @since 1.0.0
 110       *
 111       * @var GP_Router
 112       */
 113      public static $router;
 114  
 115      /**
 116       * Singleton for translation warnings.
 117       *
 118       * @since 1.0.0
 119       *
 120       * @var GP_Translation_Warnings
 121       */
 122      public static $translation_warnings;
 123  
 124      /**
 125       * Singleton for built-in translation warnings.
 126       *
 127       * @since 1.0.0
 128       *
 129       * @var GP_Builtin_Translation_Warnings
 130       */
 131      public static $builtin_translation_warnings;
 132  
 133      /**
 134       * Array of notices.
 135       *
 136       * @since 1.0.0
 137       *
 138       * @var array
 139       */
 140      public static $redirect_notices = array();
 141  
 142      /**
 143       * Holds the current route.
 144       *
 145       * @since 1.0.0
 146       *
 147       * @var string|null
 148       */
 149      public static $current_route = null;
 150  
 151      /**
 152       * Array of available formats.
 153       *
 154       * @since 1.0.0
 155       *
 156       * @var GP_Format[]
 157       */
 158      public static $formats;
 159  
 160      /**
 161       * Array of enqueued style sheets.
 162       *
 163       * @since 2.2.0
 164       *
 165       * @var array
 166       */
 167      public static $styles = array();
 168  
 169      /**
 170       * Array of enqueued scripts.
 171       *
 172       * @since 2.2.0
 173       *
 174       * @var array
 175       */
 176      public static $scripts = array();
 177  }


Generated: Mon Oct 21 01:01:55 2019 Cross-referenced by PHPXref 0.7.1