本文整理匯總了PHP中EditPage::showHeader方法的典型用法代碼示例。如果您正苦於以下問題:PHP EditPage::showHeader方法的具體用法?PHP EditPage::showHeader怎麽用?PHP EditPage::showHeader使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類EditPage
的用法示例。
在下文中一共展示了EditPage::showHeader方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: showHeader
/**
* Get HTML of notices shown above the editor and use show it as custom dismissable notice
*/
protected function showHeader()
{
$this->app->wf->ProfileIn(__METHOD__);
$oldHtml = $this->out->getHTML();
$this->out->clearHTML();
$bridge = WF::build('EditPageOutputBridge', array($this, $this->mCoreEditNotices));
/* @var $bridge EditPageOutputBridge */
parent::showHeader();
// handle notices related to edit undo
if ($this->editFormPageTop != '') {
$bridge->getMockObject()->addHTML($this->editFormPageTop);
$this->editFormPageTop = '';
}
$bridge->close();
// restore state of output
$this->out->clearHTML();
$this->out->addHTML($oldHtml);
$this->app->wf->ProfileOut(__METHOD__);
}
示例2: showHeader
/**
* Get HTML of notices shown above the editor and use show it as custom dismissable notice
*/
protected function showHeader()
{
wfProfileIn(__METHOD__);
$oldHtml = $this->out->getHTML();
$this->out->clearHTML();
$bridge = new EditPageOutputBridge($this, $this->mCoreEditNotices);
parent::showHeader();
// handle notices related to edit undo
if ($this->editFormPageTop != '') {
$bridge->getMockObject()->addHTML($this->editFormPageTop);
$this->editFormPageTop = '';
}
$bridge->close();
// restore state of output
$this->out->clearHTML();
$this->out->addHTML($oldHtml);
wfProfileOut(__METHOD__);
}