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