Plugin Directory

Changeset 1307111


Ignore:
Timestamp:
12/13/2015 01:38:08 AM (10 years ago)
Author:
vmallder
Message:

Added plugin name and plugin version to constructor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tablemaster/trunk/admin/class-tablemaster-admin.php

    r1296986 r1307111  
    4444    */
    4545    private static $instance;
    46     public function getInstance() {
     46    public function getInstance( $plugin_name, $plugin_version ) {
    4747        if (null == self::$instance) {
    48             self::$instance = new TableMaster_Admin;
     48            self::$instance = new TableMaster_Admin( $plugin_name, $plugin_version );
    4949        }
    5050        return self::$instance;
     
    5353    /**
    5454     * Initialize the class and set its properties.
    55      *
    56      * @param      string    $plugin_name       The name of this plugin.
    57      * @param      string    $version    The version of this plugin.
    58      */
    59     public function __construct() {
     55     */
     56    public function __construct( $plugin_name, $plugin_version ) {
     57   
     58        $this->plugin_name = $plugin_name;
     59        $this->version = $plugin_version;
     60       
    6061        add_action( 'admin_init', array( &$this, 'admin_init' ) );
    6162    }
Note: See TracChangeset for help on using the changeset viewer.