コード例 #1
0
 /**
  * Populate the instance with this class
  *
  * @since   1.6
  * @access  public
  * @static
  * @return  void
  */
 public static function instantiate()
 {
     if (is_null(self::$_instance)) {
         // First init, returns nothing
         self::$_instance = new self();
     }
 }
コード例 #2
0
 /**
  * Main instance of View Admin As.
  *
  * Returns the main instance of VAA_View_Admin_As to prevent the need to use globals.
  *
  * @since   1.4.1
  * @since   1.6     $caller parameter
  * @param   object  $caller
  * @return  VAA_View_Admin_As
  */
 function View_Admin_As($caller)
 {
     return VAA_View_Admin_As::get_instance($caller);
 }