diff options
author | xue <> | 2006-03-05 00:03:10 +0000 |
---|---|---|
committer | xue <> | 2006-03-05 00:03:10 +0000 |
commit | 7cd0bdea1d094485ae197fd80297791555c08d1c (patch) | |
tree | eaecfa8bc307fd768271dfabb2b495254d9b5b15 /framework/Web/UI/WebControls/TRatingList.php | |
parent | 8f832dcba3ca846b5ef22cb8c4b3168d744f5418 (diff) |
Some minor updates.
Diffstat (limited to 'framework/Web/UI/WebControls/TRatingList.php')
-rw-r--r-- | framework/Web/UI/WebControls/TRatingList.php | 21 |
1 files changed, 18 insertions, 3 deletions
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 @@ <?php
+/**
+ * TRatingList class file.
+ *
+ * @author Wei Zhuo <weizhuo[at]gmail[dot]com>
+ * @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 <weizhuo[at]gmail[dot]com>
* @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);
|