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