| @@ 31-43 (lines=13) @@ | ||
| 28 | $this->setStyle($style); |
|
| 29 | } |
|
| 30 | ||
| 31 | public function setActive($value) { |
|
| 32 | if(is_array($this->content)){ |
|
| 33 | foreach ($this->content as $pb){ |
|
| 34 | $pb->setActive($value); |
|
| 35 | } |
|
| 36 | }else{ |
|
| 37 | if ($value===true) |
|
| 38 | $this->active="active"; |
|
| 39 | else |
|
| 40 | $this->active=""; |
|
| 41 | } |
|
| 42 | return $this; |
|
| 43 | } |
|
| 44 | ||
| 45 | public function setStriped($value) { |
|
| 46 | if(is_array($this->content)){ |
|
| @@ 59-71 (lines=13) @@ | ||
| 56 | return $this; |
|
| 57 | } |
|
| 58 | ||
| 59 | public function showCaption($value) { |
|
| 60 | if(is_array($this->content)){ |
|
| 61 | foreach ($this->content as $pb){ |
|
| 62 | $pb->showCaption($value); |
|
| 63 | } |
|
| 64 | }else{ |
|
| 65 | if ($value===true) |
|
| 66 | $this->caption="%value%%"; |
|
| 67 | else |
|
| 68 | $this->caption='<span class="sr-only">%value%% Complete (%style%)</span>'; |
|
| 69 | } |
|
| 70 | return $this; |
|
| 71 | } |
|
| 72 | ||
| 73 | public function getValue() { |
|
| 74 | return $this->value; |
|