| 1 |
lars |
1 |
<?php
|
|
|
2 |
/**
|
|
|
3 |
* TCallbackOptions component class file.
|
|
|
4 |
*
|
|
|
5 |
* @author Wei Zhuo <weizhuo[at]gamil[dot]com>
|
|
|
6 |
* @link http://www.pradosoft.com/
|
|
|
7 |
* @copyright Copyright © 2005-2008 PradoSoft
|
|
|
8 |
* @license http://www.pradosoft.com/license/
|
|
|
9 |
* @version $Id: TCallbackOptions.php 2541 2008-10-21 15:05:13Z qiang.xue $
|
|
|
10 |
* @package System.Web.UI.ActiveControls
|
|
|
11 |
*/
|
|
|
12 |
|
|
|
13 |
/**
|
|
|
14 |
* TCallbackOptions class.
|
|
|
15 |
*
|
|
|
16 |
* TCallbackOptions allows common set of callback client-side options
|
|
|
17 |
* to be attached to other active controls.
|
|
|
18 |
*
|
|
|
19 |
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
|
|
|
20 |
* @version $Id: TCallbackOptions.php 2541 2008-10-21 15:05:13Z qiang.xue $
|
|
|
21 |
* @package System.Web.UI.ActiveControls
|
|
|
22 |
* @since 3.1
|
|
|
23 |
*/
|
|
|
24 |
class TCallbackOptions extends TControl
|
|
|
25 |
{
|
|
|
26 |
/**
|
|
|
27 |
* @var TCallbackClientSide client side callback options.
|
|
|
28 |
*/
|
|
|
29 |
private $_clientSide;
|
|
|
30 |
|
|
|
31 |
/**
|
|
|
32 |
* Callback client-side options can be set by setting the properties of
|
|
|
33 |
* the ClientSide property. E.g. <com:TCallbackOptions ClientSide.OnSuccess="..." />
|
|
|
34 |
* See {@link TCallbackClientSide} for details on the properties of
|
|
|
35 |
* ClientSide.
|
|
|
36 |
* @return TCallbackClientSide client-side callback options.
|
|
|
37 |
*/
|
|
|
38 |
public function getClientSide()
|
|
|
39 |
{
|
|
|
40 |
if(is_null($this->_clientSide))
|
|
|
41 |
$this->_clientSide = $this->createClientSide();
|
|
|
42 |
return $this->_clientSide;
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
/**
|
|
|
46 |
* @return TCallbackClientSide callback client-side options.
|
|
|
47 |
*/
|
|
|
48 |
protected function createClientSide()
|
|
|
49 |
{
|
|
|
50 |
return Prado::createComponent('System.Web.UI.ActiveControls.TCallbackClientSide');
|
|
|
51 |
}
|
|
|
52 |
}
|
|
|
53 |
|