本文整理匯總了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>');
}