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