|
@@ 45-51 (lines=7) @@
|
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
|
| 45 |
|
public function fieldAsProgress($index,$label=NULL, $attributes=array()){ |
| 46 |
|
$this->setValueFunction($index,function($value) use($label,$attributes){ |
| 47 |
|
$pb=new HtmlProgress($this->_getFieldIdentifier("pb"),$value,$label,$attributes); |
| 48 |
|
return $pb; |
| 49 |
|
}); |
| 50 |
|
return $this; |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
public function fieldAsRating($index,$max=5, $icon=""){ |
| 54 |
|
$this->setValueFunction($index,function($value) use($max,$icon){ |
|
@@ 53-59 (lines=7) @@
|
| 50 |
|
return $this; |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
public function fieldAsRating($index,$max=5, $icon=""){ |
| 54 |
|
$this->setValueFunction($index,function($value) use($max,$icon){ |
| 55 |
|
$rating=new HtmlRating($this->_getFieldIdentifier("rat"),$value,$max,$icon); |
| 56 |
|
return $rating; |
| 57 |
|
}); |
| 58 |
|
return $this; |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
public function fieldAsLabel($index,$icon=NULL){ |
| 62 |
|
$this->setValueFunction($index,function($caption) use($icon){ |