Пример #1
0
 /**
  * The singleton method.
  *
  * @return Muut_Updater The instance.
  * @author Paul Hughes
  * @since  3.0
  */
 public static function instance()
 {
     if (!is_a(self::$instance, __CLASS__)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
 /**
  * Initializes the plugin Updater class, to pass along old options and other functionality.
  *
  * @return void
  * @author Paul Hughes
  * @since 3.0
  */
 public function initUpdater()
 {
     $class = 'Muut_Updater';
     if (!in_array($class, $this->alreadyInit)) {
         require_once muut()->getPluginPath() . 'lib/updater.class.php';
         if (class_exists($class)) {
             Muut_Updater::instance();
         }
         $this->alreadyInit[] = $class;
     }
 }