@@ 93-99 (lines=7) @@ | ||
90 | } |
|
91 | ||
92 | ||
93 | public function fieldAsProgress($index,$label=NULL, $attributes=array()){ |
|
94 | $this->setValueFunction($index,function($value) use($label,$attributes){ |
|
95 | $pb=new HtmlProgress($this->_getFieldIdentifier("pb"),$value,$label,$attributes); |
|
96 | return $pb; |
|
97 | }); |
|
98 | return $this; |
|
99 | } |
|
100 | ||
101 | public function fieldAsRating($index,$max=5, $icon=""){ |
|
102 | $this->setValueFunction($index,function($value) use($max,$icon){ |
|
@@ 101-107 (lines=7) @@ | ||
98 | return $this; |
|
99 | } |
|
100 | ||
101 | public function fieldAsRating($index,$max=5, $icon=""){ |
|
102 | $this->setValueFunction($index,function($value) use($max,$icon){ |
|
103 | $rating=new HtmlRating($this->_getFieldIdentifier("rat"),$value,$max,$icon); |
|
104 | return $rating; |
|
105 | }); |
|
106 | return $this; |
|
107 | } |
|
108 | ||
109 | public function fieldAsLabel($index,$icon=NULL){ |
|
110 | $this->setValueFunction($index,function($caption) use($icon){ |