本文整理汇总了PHP中TPage::onPreRender方法的典型用法代码示例。如果您正苦于以下问题:PHP TPage::onPreRender方法的具体用法?PHP TPage::onPreRender怎么用?PHP TPage::onPreRender使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TPage
的用法示例。
在下文中一共展示了TPage::onPreRender方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: onPreRender
public function onPreRender($param)
{
parent::onPreRender($param);
if (trim($this->_status)) {
$this->label1->Text = $this->_status;
}
}
示例2: onPreRender
/**
* Register the callback script file.
* @param TEventParameter pre-render parameters
*/
function onPreRender($param)
{
if (!empty($this->callbacksCandidates) && !$this->isScriptFileRegistered(TService_Callback::service)) {
$this->registerScriptFile(TService_Callback::service, $this->getCallbackScriptFile());
}
parent::onPreRender($param);
}
示例3: onPreRender
public function onPreRender($param)
{
parent::onPreRender($param);
$this->registerScriptClientId($this->ListNMBS);
$this->registerScriptClientId($this->ListMIVB);
$this->registerScriptClientId($this->ListDeLijn);
$this->registerScriptClientId($this->SelectedNMBS);
$this->registerScriptClientId($this->SelectedMIVB);
$this->registerScriptClientId($this->SelectedDeLijn);
$this->registerScriptClientId($this->HiddenStations);
}
示例4: onPreRender
public function onPreRender($param)
{
parent::onPreRender($param);
$this->button1->Attributes->onclick = "{$this->uploader->getCallbackJavascript()}; return false;";
}
示例5: onPreRender
function onPreRender($param)
{
parent::onPreRender($param);
$this->panel1->Style = $this->check1->Checked ? "display:block" : "display:none";
}
示例6: onPreRender
/**
* Register the callback script file.
* @param TEventParameter pre-render parameters
*/
protected function onPreRender($param)
{
$this->registerClientScript('ajax');
if (!empty($this->callbacksCandidates) && !$this->isScriptFileRegistered(get_class($this))) {
$script = $this->service->getClientUri();
$this->registerScriptFile(get_class($this), $script);
}
parent::onPreRender($param);
}
示例7: onPrerender
public function onPrerender($param)
{
parent::onPreRender($param);
//If there's a listbox, select the first item (somehow this need to be done at onPrerender, Prado?)
$sess = $this->Application->getSession();
if ($sess->has("listbox")) {
$this->PathHolder->AddPath->setSelectedIndex(0);
}
}