diff options
author | wei <> | 2006-05-02 08:28:17 +0000 |
---|---|---|
committer | wei <> | 2006-05-02 08:28:17 +0000 |
commit | d255f4d0e332740b3984e21ce3f7a4a4f1968ba3 (patch) | |
tree | 84bf54643e3a188330f6b7b5043efeed1aa44b6e /framework/Web/UI/ActiveControls/TActiveControl.php | |
parent | c5983c0440913cd67f3744c7dda3c3bfc7eee0ed (diff) |
Adding more work on ActiveControls.
Diffstat (limited to 'framework/Web/UI/ActiveControls/TActiveControl.php')
-rw-r--r-- | framework/Web/UI/ActiveControls/TActiveControl.php | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/framework/Web/UI/ActiveControls/TActiveControl.php b/framework/Web/UI/ActiveControls/TActiveControl.php index d289bab9..e61682d3 100644 --- a/framework/Web/UI/ActiveControls/TActiveControl.php +++ b/framework/Web/UI/ActiveControls/TActiveControl.php @@ -6,17 +6,43 @@ class TActiveControl extends TControl implements ICallbackEventHandler, IActiveControl
{
+ private $_clientSide;
+
public function __construct()
{
parent::__construct();
$this->setAdapter(new TActiveControlAdapter($this));
}
+
+ public function getClientSide()
+ {
+ if(is_null($this->_clientSide))
+ $this->_clientSide = $this->createClientSideOptions();
+ return $this->_clientSide;
+ }
+
+ protected function createClientSideOptions()
+ {
+ $client = new TCallbackClientSideOptions;
+ return $client;
+ }
public function raiseCallbackEvent($param)
{
- var_dump($param);
+ var_dump($param->getParameter());
+ $param->Output->write($param->Parameter);
$client = $this->getPage()->getCallbackClient();
$client->hide($this);
+ $client->toggle($this);
+ $client->update($this, 1);
+ $param->setData(array("asdasdad",1));
+ }
+
+ public function getCallbackReference()
+ {
+ // $formID = $this->getPage()->getForm()->getClientID();
+ // $this->getClientSide()->setValidationForm($formID);
+ return $this->getPage()->getClientScript()->getCallbackReference($this);
}
}
|