@@ 84-90 (lines=7) @@ | ||
81 | } |
|
82 | ||
83 | ||
84 | public function fieldAsProgress($index,$label=NULL, $attributes=array()){ |
|
85 | $this->setValueFunction($index,function($value) use($label,$attributes){ |
|
86 | $pb=new HtmlProgress($this->_getFieldIdentifier("pb"),$value,$label,$attributes); |
|
87 | return $pb; |
|
88 | }); |
|
89 | return $this; |
|
90 | } |
|
91 | ||
92 | public function fieldAsRating($index,$max=5, $icon=""){ |
|
93 | $this->setValueFunction($index,function($value) use($max,$icon){ |
|
@@ 92-98 (lines=7) @@ | ||
89 | return $this; |
|
90 | } |
|
91 | ||
92 | public function fieldAsRating($index,$max=5, $icon=""){ |
|
93 | $this->setValueFunction($index,function($value) use($max,$icon){ |
|
94 | $rating=new HtmlRating($this->_getFieldIdentifier("rat"),$value,$max,$icon); |
|
95 | return $rating; |
|
96 | }); |
|
97 | return $this; |
|
98 | } |
|
99 | ||
100 | public function fieldAsLabel($index,$icon=NULL){ |
|
101 | $this->setValueFunction($index,function($caption) use($icon){ |