本文整理汇总了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__);
}