本文整理汇总了PHP中EditPage::readOnlyPage方法的典型用法代码示例。如果您正苦于以下问题:PHP EditPage::readOnlyPage方法的具体用法?PHP EditPage::readOnlyPage怎么用?PHP EditPage::readOnlyPage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EditPage
的用法示例。
在下文中一共展示了EditPage::readOnlyPage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: readOnlyPage
/**
* Show a read-only error
* Parameters are the same as OutputPage:readOnlyPage()
* Redirect to the article page if redlink=1
*/
function readOnlyPage($source = null, $protected = false, $reasons = array(), $action = null)
{
$this->mIsReadOnlyPage = true;
$this->helper->addJsVariable('wgEditPageIsReadOnly', true);
$bridge = F::build('EditPageOutputBridge', array($this, $this->mCoreEditNotices));
/* @var $bridge EditPageOutputBridge */
parent::readOnlyPage($source, $protected, $reasons, $action);
$bridge->close();
//$this->mCoreEditNotices->get( ??? )->setSummary( $this->app->wf->msgExt( 'editpagelayout-blocked-user' ) );
$this->mCoreEditNotices->remove('templatesUsed');
$this->mCoreEditNotices->remove('viewsourcetext');
$this->mCoreEditNotices->remove(false);
$this->textbox1 = $source;
$this->out->clearHTML();
$this->out->addHtml('<div id="myedit">');
$this->showTextbox1(array('readonly'));
$this->out->addHtml('</div>');
}