function __construct($page) { parent::__construct($page); // Make human readable the default format for editing, but still // save as json. Can be overriden by url ?format=application/json param. $this->contentFormat = CollaborationHubContentHandler::FORMAT_WIKI; }
function __construct($article) { //$wgRequest; $this->name = $article->getTitle()->getPartialURL(); //$this->mode = parent::__construct($article); }
function __construct($article, $form_name = '') { global $wgRequest; parent::__construct($article); $this->action = 'formedit'; $form_name = $wgRequest->getText('form', $form_name); $this->form = Title::makeTitleSafe(SF_NS_FORM, $form_name); $this->form_name = $form_name; }
/** * @param Article $article */ function __construct(Article $article) { $this->app = F::app(); $this->out = $this->app->wg->Out; $this->request = $this->app->wg->Request; $this->app->wf->ProfileIn(__METHOD__); parent::__construct($article); // default setup of summary box $this->mSummaryBox = array('name' => 'wpSummary', 'placeholder' => wfMsg('editpagelayout-pageControls-summaryLabel')); $this->mCoreEditNotices = F::build('EditPageNotices'); $this->mEditNotices = F::build('EditPageNotices'); // add messages (fetch them using <script> tag) F::build('JSMessages')->enqueuePackage('EditPageLayout', JSMessages::EXTERNAL); $this->app->wf->ProfileOut(__METHOD__); }
function __construct($article) { $this->name = $article->getTitle()->getPartialURL(); parent::__construct($article); }
function __construct($article) { parent::__construct($article); }
function __construct($article) { parent::__construct($article); $this->mGuided = true; }