Subversion-Projekte lars-tiefland.prado

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?php
/**
 * TCallbackOptions component class file.
 *
 * @author Wei Zhuo <weizhuo[at]gamil[dot]com>
 * @link http://www.pradosoft.com/
 * @copyright Copyright &copy; 2005-2008 PradoSoft
 * @license http://www.pradosoft.com/license/
 * @version $Id: TCallbackOptions.php 2541 2008-10-21 15:05:13Z qiang.xue $
 * @package System.Web.UI.ActiveControls
 */

/**
 * TCallbackOptions class.
 *
 * TCallbackOptions allows common set of callback client-side options
 * to be attached to other active controls.
 *
 * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
 * @version $Id: TCallbackOptions.php 2541 2008-10-21 15:05:13Z qiang.xue $
 * @package System.Web.UI.ActiveControls
 * @since 3.1
 */
class TCallbackOptions extends TControl
{
        /**
         * @var TCallbackClientSide client side callback options.
         */
        private $_clientSide;

        /**
         * Callback client-side options can be set by setting the properties of
         * the ClientSide property. E.g. <com:TCallbackOptions ClientSide.OnSuccess="..." />
         * See {@link TCallbackClientSide} for details on the properties of
         * ClientSide.
         * @return TCallbackClientSide client-side callback options.
         */
        public function getClientSide()
        {
                if(is_null($this->_clientSide))
                        $this->_clientSide = $this->createClientSide();
                return $this->_clientSide;
        }

        /**
         * @return TCallbackClientSide callback client-side options.
         */
        protected function createClientSide()
        {
                return Prado::createComponent('System.Web.UI.ActiveControls.TCallbackClientSide');
        }
}