コード例 #1
0
ファイル: Example.php プロジェクト: clrh/mediawiki
 /**
  * If a constructor is required, then the
  * parent class must be called first. 
  */
 public function __construct()
 {
     parent::__construct();
     // do some stuff starting here
     // NOTE: don't touch too much MediaWiki's internals here;
     //       use the 'setup' method to do this instead.
 }
コード例 #2
0
ファイル: WidgetRenderer.php プロジェクト: clrh/mediawiki
 public function __construct()
 {
     if (self::$instance !== null) {
         throw new Exception(__CLASS__ . ": singleton pattern");
     }
     self::$instance = $this;
     parent::__construct();
 }
コード例 #3
0
ファイル: WidgetFactory.php プロジェクト: clrh/mediawiki
 /**
  * Constructor
  */
 public function __construct()
 {
     if (self::$instance !== null) {
         throw new Exception(__CLASS__ . ": there can only be one instance of this class");
     }
     self::$instance = $this;
     parent::__construct();
     $this->registerDefaultStorages();
 }
コード例 #4
0
ファイル: SecureWidgets.php プロジェクト: clrh/mediawiki
 /**
  * If a constructor is required, then the
  * parent class must be called first. 
  */
 public function __construct()
 {
     global $wgAutoloadClasses;
     $dir = dirname(__FILE__) . '/';
     foreach (self::$components as $classe => &$filename) {
         $wgAutoloadClasses[$classe] = $dir . $filename . '.php';
     }
     parent::__construct();
 }
コード例 #5
0
ファイル: QuickEditProtect.php プロジェクト: clrh/mediawiki
 /**
  * If a constructor is required, then the
  * parent class must be called first. 
  */
 public function __construct()
 {
     parent::__construct();
 }