Example #1
0
 /**
  * Initializes the plugin object and returns its instance
  *
  * @param string $__FILE__ the main plugin file's __FILE__ value
  * @return object the plugin object instance
  */
 public static function get_instance($__FILE__ = null)
 {
     if (!isset(self::$instance)) {
         self::$instance = new self($__FILE__);
     }
     return self::$instance;
 }