/** * Contstruct as a normal article with no differences */ function __construct($param) { global $wgHooks; // This hook allows us to change the class of article to one of our classes $wgHooks['InitializeArticleMaybeRedirect'][] = $this; // Allow sub-classes to have an edit method that can add its own fields $wgHooks['EditPage::showEditForm:fields'][] = array($this, 'onShowEditFormFields'); // Allow sub-classes to have a save method that can store its fields into the page_props $wgHooks['ArticleSave'][] = $this; return parent::__construct($param); }
public function __construct($title) { parent::__construct($title); $this->mDupes = null; $this->mRepo = null; }