);
if ($client->error === 0) {
$this->setClientName($client->output->name);
- if (!empty($_SESSION['dir'])) {
- $this->ClientConfig->setComponentName($_SESSION['dir']);
- $this->ClientConfig->setResourceName($this->getClientName());
- $this->ClientConfig->setLoadValues(true);
- $this->ClientConfig->raiseEvent('OnDirectiveListLoad', $this, null);
- }
+ }
+ }
+
+ public function onPreRender($param) {
+ parent::onPreRender($param);
+ if ($this->IsCallBack || $this->IsPostBack) {
+ return;
+ }
+ if (!empty($_SESSION['dir'])) {
+ $this->ClientConfig->setComponentName($_SESSION['dir']);
+ $this->ClientConfig->setResourceName($this->getClientName());
+ $this->ClientConfig->setLoadValues(true);
+ $this->ClientConfig->raiseEvent('OnDirectiveListLoad', $this, null);
}
}
public function onPreRender($param) {
parent::onPreRender($param);
- if ($this->getPage()->IsCallBack || $this->getPage()->IsPostBack) {
+ if ($this->IsCallBack || $this->IsPostBack) {
return;
}
if (!empty($_SESSION['dir'])) {
const COMPONENT_NAME = 'ComponentName';
const RESOURCE_TYPE = 'ResourceType';
- public function onInit($param) {
- parent::onInit($param);
+ public function onPreRender($param) {
+ parent::onPreRender($param);
if ($this->IsCallBack || $this->IsPostBack) {
return;
}
if ($poolshow->error === 0) {
$this->PoolLog->Text = implode(PHP_EOL, $poolshow->output);
}
+ }
+
+ public function onPreRender($param) {
+ parent::onPreRender($param);
+ if ($this->IsCallBack || $this->IsPostBack) {
+ return;
+ }
if (!empty($_SESSION['dir'])) {
$this->PoolConfig->setComponentName($_SESSION['dir']);
$this->PoolConfig->setResourceName($this->getPoolName());
if ($this->Request->contains('schedule')) {
$this->setScheduleName($this->Request['schedule']);
}
+ }
+
+ public function onPreRender($param) {
+ parent::onPreRender($param);
+ if ($this->IsCallBack || $this->IsPostBack) {
+ return;
+ }
if (!empty($_SESSION['dir'])) {
$this->ScheduleConfig->setComponentName($_SESSION['dir']);
$this->ScheduleConfig->setResourceName($this->getScheduleName());