本文整理匯總了PHP中Nette\Application\UI\Presenter::processSignal方法的典型用法代碼示例。如果您正苦於以下問題:PHP Presenter::processSignal方法的具體用法?PHP Presenter::processSignal怎麽用?PHP Presenter::processSignal使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Nette\Application\UI\Presenter
的用法示例。
在下文中一共展示了Presenter::processSignal方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: processSignal
/**
* @inheritDoc
*/
public function processSignal()
{
$signal = $this->getSignal();
parent::processSignal();
if ($signal && ($this->snippetMode = $this->isAjax())) {
Nette\Bridges\ApplicationLatte\UIRuntime::renderSnippets($this);
$this->sendPayload();
}
}
示例2: processSignal
/**
* Invalidation
* @throws BadRequestException
*/
public function processSignal()
{
$signal = $this->getSignal();
// If does not exist signal or is not Ajax request ,then redraw snippets
if ((!$signal or empty($signal[0]) or !$this->isAjax()) and $this->layout != false) {
$this->redrawControl("title");
$this->redrawControl("content");
$this->redrawControl("styles");
$this->redrawControl("scripts");
}
try {
parent::processSignal();
} catch (BadRequestException $e) {
if ($this->isAjax()) {
$this->flashMessage($e->getMessage(), 'error');
$this->sendPayload();
} else {
throw $e;
}
}
}