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