Class TClientSideOptions

Description

TClientSideOptions abstract class.

TClientSideOptions manages client-side options for components that have common client-side javascript behaviours and client-side events such as between ActiveControls and validators.

  • author: <weizhuo[at]gmail[dot]com>
  • version: $Id: TClientScriptManager.php 3167 2012-06-25 09:25:11Z ctrlaltca $
  • abstract:
  • since: 3.0

Located in /Web/UI/TClientScriptManager.php (line 764)

TComponent
   |
   --TClientSideOptions
Direct descendents
Class Description
TCallbackClientSide TCallbackClientSide class.
TValidatorClientSide TValidatorClientSide class.
TColorPickerClientSide TColorPickerClientSide class.
TDatePickerClientScript TDatePickerClientScript class.
TSliderClientScript TSliderClientScript class.
TClientSideValidationSummaryOptions TClientSideValidationSummaryOptions class.
Method Summary
TClientSideOptions __construct ()
void ensureFunction ( $javascript)
string getOption ( $name)
void setFunction (string $name, string $code)
void setOption (string $name, mixed $value)
Methods
Constructor __construct (line 774)

Constructor, initialize the options list.

  • access: public
TClientSideOptions __construct ()
ensureFunction (line 823)

Ensure that the javascript statements are wrapped in a javascript function block as

  1. function(senderparameter)//code }
.

  • access: protected
void ensureFunction ( $javascript)
  • $javascript

Redefined in descendants as:
getOption (line 797)
  • return: gets a particular option, null if not set.
  • access: protected
string getOption ( $name)
  • $name
getOptions (line 814)
  • return: gets the list of options as TMap
  • access: public
TMap getOptions ()
setFunction (line 787)

Adds on client-side event handler by wrapping the code within a javascript function block. If the code begins with "javascript:", the code is assumed to be a javascript function block rather than arbiturary javascript statements.

  • access: protected
void setFunction (string $name, string $code)
  • string $name: option name
  • string $code: javascript statements.
setOption (line 806)
  • access: protected
void setOption (string $name, mixed $value)
  • string $name: option name
  • mixed $value: option value.

Inherited Methods

Inherited From TComponent

TComponent::addParsedObject()
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::createdOnTemplate()
TComponent::detachEventHandler()
TComponent::evaluateExpression()
TComponent::evaluateStatements()
TComponent::getEventHandlers()
TComponent::getSubProperty()
TComponent::hasEvent()
TComponent::hasEventHandler()
TComponent::hasProperty()
TComponent::raiseEvent()
TComponent::setSubProperty()
TComponent::__call()
TComponent::__get()
TComponent::__set()
TComponent::__sleep()
TComponent::__wakeup()

Documentation generated on Mon, 25 Jun 2012 14:37:34 +0200 by phpDocumentor 1.4.3