From 7cd0bdea1d094485ae197fd80297791555c08d1c Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 5 Mar 2006 00:03:10 +0000 Subject: Some minor updates. --- framework/Web/UI/WebControls/TRatingList.php | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'framework/Web/UI/WebControls/TRatingList.php') diff --git a/framework/Web/UI/WebControls/TRatingList.php b/framework/Web/UI/WebControls/TRatingList.php index b2861f2b..9a6932b0 100644 --- a/framework/Web/UI/WebControls/TRatingList.php +++ b/framework/Web/UI/WebControls/TRatingList.php @@ -1,9 +1,24 @@ + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005 PradoSoft + * @license http://www.pradosoft.com/license/ + * @version $Revision: $ $Date: $ + * @package System.Web.UI.WebControls + */ +/** + * Includes TRadioButtonList class + */ Prado::using('System.Web.UI.WebControls.TRadioButtonList'); /** - * TRatingList + * TRatingList class. + * + * This class is EXPERIMENTAL. * * @author Wei Zhuo * @version $Revision: $ $Date: $ @@ -81,7 +96,7 @@ class TRatingList extends TRadioButtonList public function setHalfRatingLimit($value) { - $this->setViewState('HalfRating', + $this->setViewState('HalfRating', TPropertyValue::ensureArray($value), array(0.3, 0.7)); } @@ -168,7 +183,7 @@ class TRatingList extends TRadioButtonList protected function renderRatingListItem($writer, $repeatInfo, $itemType, $index) { - $image = new TImage; + $image = new TImage; $image->setImageUrl($this->_ratingImages[$this->getRatingImageType($index)]); $image->setAlternateText($this->getRating()); $image->render($writer); -- cgit v1.2.3