Class TActiveRatingList

Description

TActiveRatingList Class

Displays clickable images that represent a TActiveRadioButtonList

Located in /Web/UI/ActiveControls/TActiveRatingList.php (line 23)

TComponent
   |
   --TApplicationComponent
      |
      --TControl
         |
         --TWebControl
            |
            --TDataBoundControl
               |
               --TListControl
                  |
                  --TCheckBoxList
                     |
                     --TRadioButtonList
                        |
                        --TActiveRadioButtonList
                           |
                           --TActiveRatingList
Method Summary
TActiveRatingList __construct ()
void callClientFunction (string $func, mixed $value)
void getCaption ()
string getCaptionID ()
string getClientClassName ()
float getRating ()
string getRatingImageType (integer $index)
int getRatingIndex (float $rating)
TRatingListStyle getRatingStyle ()
boolean getReadOnly ()
void onPreRender (mixed $param)
array publishRatingListImages (string $style, [string $fileExt = '.gif'])
string publishRatingListStyle (string $style)
void render (THtmlWriter $writer)
void renderClientControlScript (mixed $writer)
void renderItem (mixed $writer, mixed $repeatInfo, mixed $itemType, mixed $index)
void renderStaticRating (mixed $writer, mixed $repeatInfo, mixed $itemType, mixed $index)
void setCaption (mixed $value)
void setCaptionID (string $value)
void setEnabled (boolean $value)
void setHalfRatingInterval (array $value)
void setRating (float $value)
void setRatingStyle (string $value)
void setReadOnly (boolean $value)
void setRepeatLayout (string $value)
void setSelectedIndex (int $value)
Methods
Constructor __construct (line 33)

Sets the default repeat direction to horizontal.

  • access: public
TActiveRatingList __construct ()

Redefinition of:
TActiveRadioButtonList::__construct()
Creates a new callback control, sets the adapter to TActiveListControlAdapter. If you override this class, be sure to set the adapter appropriately by, for example, by calling this constructor.
callClientFunction (line 122)

Calls the client-side static method for this control class.

  • access: protected
void callClientFunction (string $func, mixed $value)
  • string $func: static method name
  • mixed $value: method parmaeter
getCaption (line 163)
  • access: public
void getCaption ()
getCaptionControl (line 145)
  • access: protected
void getCaptionControl ()
getCaptionControlID (line 249)
  • return: find the client ID of the caption control.
  • access: protected
string getCaptionControlID ()
getCaptionID (line 132)
  • return: control or html element ID for displaying a caption.
  • access: public
string getCaptionID ()
getClientClassName (line 369)

Gets the name of the javascript class responsible for performing postback for this control.

This method overrides the parent implementation.

  • return: the javascript class name
  • access: protected
string getClientClassName ()

Redefinition of:
TActiveRadioButtonList::getClientClassName()
getHalfRatingInterval (line 209)
  • return: rating display half value interval, default is array(0.3, 0.7);
  • access: public
array getHalfRatingInterval ()
getPostBackOptions (line 225)
  • return: list of post back options.
  • access: protected
array getPostBackOptions ()

Redefinition of:
TCheckBoxList::getPostBackOptions()
Gets the post back options for this checkbox.
getRating (line 71)
  • return: rating value.
  • access: public
float getRating ()
getRatingImageType (line 352)
  • return: the rating image corresponding to current index to be rendered.
  • access: protected
string getRatingImageType (integer $index)
  • integer $index: rating image index
getRatingIndex (line 95)
  • return: rating as integer
  • access: protected
int getRatingIndex (float $rating)
  • float $rating: rating value
getRatingStyle (line 190)
  • return: current rating style
  • access: public
TRatingListStyle getRatingStyle ()
getRatingStyleCssClass (line 217)
  • return: rating style css class name.
  • access: protected
string getRatingStyleCssClass ()
getReadOnly (line 42)
  • return: whether the items in the column can be edited. Defaults to false.
  • access: public
boolean getReadOnly ()
onPreRender (line 317)

Publish the the rating style css file and rating image files.

  • access: public
void onPreRender (mixed $param)

Redefinition of:
TCheckBoxList::onPreRender()
Registers for post data on postback.
publishRatingListImages (line 285)
  • return: URL of publish the rating images
  • access: protected
array publishRatingListImages (string $style, [string $fileExt = '.gif'])
  • string $style: rating style name
  • string $fileExt: rating image file extension, default is '.gif'
publishRatingListStyle (line 268)
  • return: URL of the css style file
  • access: protected
string publishRatingListStyle (string $style)
  • string $style: rating style name
render (line 307)

Add rating style class name to the class attribute when setReadOnly property is true and when the setCssClass property is empty.

  • access: public
void render (THtmlWriter $writer)

Redefinition of:
TCheckBoxList::render()
Renders the checkbox list control.
renderClientControlScript (line 240)

Registers the javascript code for initializing the active control only if setReadOnly property is false.

  • access: protected
void renderClientControlScript (mixed $writer)

Redefinition of:
TActiveRadioButtonList::renderClientControlScript()
Registers the javascript code for initializing the active control.
renderItem (line 329)

Renders the rating images if setReadOnly is true otherwise render the radio buttons.

  • access: public
void renderItem (mixed $writer, mixed $repeatInfo, mixed $itemType, mixed $index)

Redefinition of:
TCheckBoxList::renderItem()
Renders an item in the list.
renderStaticRating (line 340)

Renders the static rating images.

  • access: protected
void renderStaticRating (mixed $writer, mixed $repeatInfo, mixed $itemType, mixed $index)
setCaption (line 156)
  • access: public
void setCaption (mixed $value)
setCaptionID (line 140)
  • access: public
void setCaptionID (string $value)
  • string $value: control or html element ID for displaying a caption.
setEnabled (line 171)
  • access: public
void setEnabled (boolean $value)
  • boolean $value: true to enable the rating to be changed.

Redefinition of:
TControl::setEnabled()
setHalfRatingInterval (line 200)

Sets the interval such that those rating values within the interval will be considered as a half star rating.

  • access: public
void setHalfRatingInterval (array $value)
  • array $value: rating display half value interval, default is array(0.3, 0.7);
setRating (line 79)
  • access: public
void setRating (float $value)
  • float $value: rating value, also sets the selected Index
setRatingStyle (line 182)
  • access: public
void setRatingStyle (string $value)
  • string $value: set the rating style, default is "default"
setReadOnly (line 50)
  • access: public
void setReadOnly (boolean $value)
  • boolean $value: whether the items in the column can be edited
setRepeatLayout (line 60)

The repeat layout must be Table.

  • access: public
  • throws: TInvaliddataValueException when repeat layout is not Table.
void setRepeatLayout (string $value)
  • string $value: repeat layout type

Redefinition of:
TCheckBoxList::setRepeatLayout()
setSelectedIndex (line 106)
  • access: public
void setSelectedIndex (int $value)
  • int $value: change the rating selection index

Redefinition of:
TListControl::setSelectedIndex()

Inherited Methods

Inherited From TActiveRadioButtonList

TActiveRadioButtonList::__construct()
TActiveRadioButtonList::createRepeatedControl()
TActiveRadioButtonList::getActiveControl()
TActiveRadioButtonList::getClientClassName()
TActiveRadioButtonList::getClientSide()
TActiveRadioButtonList::onCallback()
TActiveRadioButtonList::raiseCallbackEvent()
TActiveRadioButtonList::renderClientControlScript()

Inherited From TRadioButtonList

TRadioButtonList::createRepeatedControl()
TRadioButtonList::getClientClassName()
TRadioButtonList::getIsMultiSelect()
TRadioButtonList::loadPostData()
TRadioButtonList::setSelectedIndices()

Inherited From TCheckBoxList

TCheckBoxList::__construct()
TCheckBoxList::createRepeatedControl()
TCheckBoxList::createStyle()
TCheckBoxList::findControl()
TCheckBoxList::generateItemStyle()
TCheckBoxList::getCellPadding()
TCheckBoxList::getCellSpacing()
TCheckBoxList::getClientClassName()
TCheckBoxList::getHasFooter()
TCheckBoxList::getHasHeader()
TCheckBoxList::getHasSeparators()
TCheckBoxList::getIsMultiSelect()
TCheckBoxList::getPostBackOptions()
TCheckBoxList::getRepeatColumns()
TCheckBoxList::getRepeatDirection()
TCheckBoxList::getRepeatInfo()
TCheckBoxList::getRepeatLayout()
TCheckBoxList::getTextAlign()
TCheckBoxList::getValidationPropertyValue()
TCheckBoxList::loadPostData()
TCheckBoxList::onPreRender()
TCheckBoxList::raisePostDataChangedEvent()
TCheckBoxList::render()
TCheckBoxList::renderItem()
TCheckBoxList::setCellPadding()
TCheckBoxList::setCellSpacing()
TCheckBoxList::setRepeatColumns()
TCheckBoxList::setRepeatDirection()
TCheckBoxList::setRepeatLayout()
TCheckBoxList::setTextAlign()

Inherited From TListControl

TListControl::addAttributesToRender()
TListControl::addParsedObject()
TListControl::clearSelection()
TListControl::createListItemCollection()
TListControl::formatDataValue()
TListControl::getAppendDataBoundItems()
TListControl::getAutoPostBack()
TListControl::getCausesValidation()
TListControl::getClientClassName()
TListControl::getDataGroupField()
TListControl::getDataTextField()
TListControl::getDataTextFormatString()
TListControl::getDataValueField()
TListControl::getEnableClientScript()
TListControl::getHasItems()
TListControl::getIsMultiSelect()
TListControl::getItemCount()
TListControl::getItems()
TListControl::getPostBackOptions()
TListControl::getSelectedIndex()
TListControl::getSelectedIndices()
TListControl::getSelectedItem()
TListControl::getSelectedValue()
TListControl::getSelectedValues()
TListControl::getTagName()
TListControl::getText()
TListControl::getValidationGroup()
TListControl::loadState()
TListControl::onSelectedIndexChanged()
TListControl::onTextChanged()
TListControl::performDataBinding()
TListControl::renderClientControlScript()
TListControl::renderContents()
TListControl::saveState()
TListControl::setAppendDataBoundItems()
TListControl::setAutoPostBack()
TListControl::setCausesValidation()
TListControl::setDataGroupField()
TListControl::setDataTextField()
TListControl::setDataTextFormatString()
TListControl::setDataValueField()
TListControl::setEnableClientScript()
TListControl::setSelectedIndex()
TListControl::setSelectedIndices()
TListControl::setSelectedValue()
TListControl::setSelectedValues()
TListControl::setText()
TListControl::setValidationGroup()

Inherited From TDataBoundControl

TDataBoundControl::createPagedDataSource()
TDataBoundControl::dataBind()
TDataBoundControl::dataSourceViewChanged()
TDataBoundControl::determineDataSource()
TDataBoundControl::ensureDataBound()
TDataBoundControl::getAllowCustomPaging()
TDataBoundControl::getAllowPaging()
TDataBoundControl::getCurrentPageIndex()
TDataBoundControl::getData()
TDataBoundControl::getDataMember()
TDataBoundControl::getDataSource()
TDataBoundControl::getDataSourceID()
TDataBoundControl::getDataSourceView()
TDataBoundControl::getInitialized()
TDataBoundControl::getIsDataBound()
TDataBoundControl::getPageCount()
TDataBoundControl::getPageSize()
TDataBoundControl::getRequiresDataBinding()
TDataBoundControl::getSelectParameters()
TDataBoundControl::getUsingDataSourceID()
TDataBoundControl::getVirtualItemCount()
TDataBoundControl::onDataBound()
TDataBoundControl::onDataSourceChanged()
TDataBoundControl::onInit()
TDataBoundControl::onPreRender()
TDataBoundControl::pagePreLoad()
TDataBoundControl::performDataBinding()
TDataBoundControl::setAllowCustomPaging()
TDataBoundControl::setAllowPaging()
TDataBoundControl::setCurrentPageIndex()
TDataBoundControl::setDataMember()
TDataBoundControl::setDataSource()
TDataBoundControl::setDataSourceID()
TDataBoundControl::setInitialized()
TDataBoundControl::setIsDataBound()
TDataBoundControl::setPageSize()
TDataBoundControl::setRequiresDataBinding()
TDataBoundControl::setVirtualItemCount()
TDataBoundControl::validateDataSource()

Inherited From TWebControl

TWebControl::addAttributesToRender()
TWebControl::copyBaseAttributes()
TWebControl::createStyle()
TWebControl::getAccessKey()
TWebControl::getBackColor()
TWebControl::getBorderColor()
TWebControl::getBorderStyle()
TWebControl::getBorderWidth()
TWebControl::getCssClass()
TWebControl::getFont()
TWebControl::getForeColor()
TWebControl::getHasStyle()
TWebControl::getHeight()
TWebControl::getStyle()
TWebControl::getTabIndex()
TWebControl::getTagName()
TWebControl::getToolTip()
TWebControl::getWidth()
TWebControl::render()
TWebControl::renderBeginTag()
TWebControl::renderContents()
TWebControl::renderEndTag()
TWebControl::setAccessKey()
TWebControl::setBackColor()
TWebControl::setBorderColor()
TWebControl::setBorderStyle()
TWebControl::setBorderWidth()
TWebControl::setCssClass()
TWebControl::setForeColor()
TWebControl::setHeight()
TWebControl::setStyle()
TWebControl::setTabIndex()
TWebControl::setToolTip()
TWebControl::setWidth()

Inherited From TControl

TControl::__construct()
TControl::addedControl()
TControl::addParsedObject()
TControl::addToPostDataLoader()
TControl::applyStyleSheetSkin()
TControl::autoBindProperty()
TControl::autoDataBindProperties()
TControl::bindProperty()
TControl::broadcastEvent()
TControl::bubbleEvent()
TControl::clearChildState()
TControl::clearControlState()
TControl::clearNamingContainer()
TControl::clearViewState()
TControl::createChildControls()
TControl::createControlCollection()
TControl::dataBind()
TControl::dataBindChildren()
TControl::dataBindProperties()
TControl::ensureChildControls()
TControl::findControl()
TControl::findControlsByID()
TControl::findControlsByType()
TControl::focus()
TControl::getAdapter()
TControl::getAllowChildControls()
TControl::getAttribute()
TControl::getAttributes()
TControl::getChildControlsCreated()
TControl::getClientID()
TControl::getControls()
TControl::getControlStage()
TControl::getControlState()
TControl::getCustomData()
TControl::getEnabled()
TControl::getEnableTheming()
TControl::getEnableViewState()
TControl::getHasAdapter()
TControl::getHasAttributes()
TControl::getHasChildInitialized()
TControl::getHasControls()
TControl::getHasInitialized()
TControl::getHasLoaded()
TControl::getHasLoadedPostData()
TControl::getHasPreRendered()
TControl::getID()
TControl::getNamingContainer()
TControl::getPage()
TControl::getParent()
TControl::getRegisteredObject()
TControl::getSkinID()
TControl::getSourceTemplateControl()
TControl::getTemplateControl()
TControl::getUniqueID()
TControl::getViewState()
TControl::getVisible()
TControl::hasAttribute()
TControl::initRecursive()
TControl::isDescendentOf()
TControl::isObjectRegistered()
TControl::loadRecursive()
TControl::loadState()
TControl::loadStateRecursive()
TControl::onDataBinding()
TControl::onInit()
TControl::onLoad()
TControl::onPreRender()
TControl::onUnload()
TControl::preRenderRecursive()
TControl::raiseBubbleEvent()
TControl::registerObject()
TControl::removeAttribute()
TControl::removedControl()
TControl::render()
TControl::renderChildren()
TControl::renderControl()
TControl::saveState()
TControl::saveStateRecursive()
TControl::setAdapter()
TControl::setAttribute()
TControl::setChildControlsCreated()
TControl::setControlStage()
TControl::setControlState()
TControl::setCustomData()
TControl::setEnabled()
TControl::setEnableTheming()
TControl::setEnableViewState()
TControl::setID()
TControl::setPage()
TControl::setSkinID()
TControl::setTemplateControl()
TControl::setViewState()
TControl::setVisible()
TControl::traverseChildControls()
TControl::unbindProperty()
TControl::unloadRecursive()
TControl::unregisterObject()
TControl::__get()

Inherited From TApplicationComponent

TApplicationComponent::getApplication()
TApplicationComponent::getRequest()
TApplicationComponent::getResponse()
TApplicationComponent::getService()
TApplicationComponent::getSession()
TApplicationComponent::getUser()
TApplicationComponent::publishAsset()
TApplicationComponent::publishFilePath()

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::__get()
TComponent::__set()
Class Constants

Documentation generated on Sun, 14 Jan 2007 21:40:54 -0500 by phpDocumentor 1.3.0RC4