24 $this->_template=include
'templates/tplProgressbar.php';
32 if(\is_array($this->content)){
33 foreach ($this->content as $pb){
38 $this->active=
"active";
46 if(\is_array($this->content)){
47 foreach ($this->content as $pb){
52 $this->striped=
"progress-bar-striped";
60 if(\is_array($this->content)){
61 foreach ($this->content as $pb){
66 $this->caption=
"%value%%";
68 $this->caption=
'<span class="sr-only">%value%% Complete (%style%)</span>';
78 $this->_template=
'%content%';
80 $progressBar->
showCaption($this->caption==
"%value%%");
83 if (!is_array($this->content)) {
84 $this->content=array ();
86 $this->content []=$progressBar;
138 foreach ($this->styleLimits as $k=>$v){
144 $this->style=$actualStyle;
145 $this->_template=str_replace(
"%caption%", $this->caption, $this->_template);
147 $this->
wrap(
'<div class="progress">',
'</div>');
149 return parent::compile($js, $view);
164 $this->
stack($function($object));
setStyle($cssStyle)
define the progressbar style avaible values : "success","info","warning","danger" ...
stack(HtmlProgressbar $progressBar)
compile(JsUtils $js=NULL, &$view=NULL)
__construct($identifier, $style="info", $value=0, $max=100, $min=0)
static isAssociative($array)
setMemberCtrl(&$name, $value, $typeCtrl)
static Styles($prefix="btn")
setStyleLimits($styleLimits)
Permet de modifier le style de la progressbar à partir de sa valeur actuelle $styleLimits est de la f...
fromDatabaseObject($object, $function)
static getStyle($cssStyle, $prefix)
return a valid style avaible values : "default","primary","success","info","warning","danger"