| 1 | <?php |
||
| 8 | class HtmlRating extends HtmlSemDoubleElement { |
||
| 9 | protected $_params=array(); |
||
| 10 | /** |
||
| 11 | * @param string $identifier |
||
| 12 | * @param int $value |
||
| 13 | * @param int $max |
||
| 14 | * @param string $icon star or heart |
||
| 15 | */ |
||
| 16 | public function __construct($identifier, $value,$max=5,$icon="") { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * {@inheritDoc} |
||
| 24 | * @see \Ajax\common\html\HtmlDoubleElement::setValue() |
||
| 25 | */ |
||
| 26 | public function setValue($value){ |
||
| 29 | |||
| 30 | public function setMax($max){ |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritDoc} |
||
| 36 | * @see \Ajax\semantic\html\base\HtmlSemDoubleElement::run() |
||
| 37 | */ |
||
| 38 | public function run(JsUtils $js){ |
||
| 42 | |||
| 43 | public function asStar(){ |
||
| 46 | |||
| 47 | public function asHeart(){ |
||
| 50 | |||
| 51 | public function setIcon($icon="star"){ |
||
| 54 | } |