| @@ 59-70 (lines=12) @@ | ||
| 56 | * @param mixed $value The value to set if the blob is a string. |
|
| 57 | * @return $this |
|
| 58 | */ |
|
| 59 | public function set($blob, $value = null) |
|
| 60 | { |
|
| 61 | if (is_array($blob)) { |
|
| 62 | foreach ($blob as $key => $value) { |
|
| 63 | $this->{$key} = $value; |
|
| 64 | } |
|
| 65 | } else { |
|
| 66 | $this->{$blob} = $value; |
|
| 67 | } |
|
| 68 | ||
| 69 | return $this; |
|
| 70 | } |
|
| 71 | ||
| 72 | public function get($key, $htmlize=true) |
|
| 73 | { |
|
| @@ 143-154 (lines=12) @@ | ||
| 140 | * @param mixed $value The value to set if the blob is a string. |
|
| 141 | * @return $this |
|
| 142 | */ |
|
| 143 | public function set($blob, $value = null) |
|
| 144 | { |
|
| 145 | if (is_array($blob)) { |
|
| 146 | foreach ($blob as $key => $value) { |
|
| 147 | $this->{$key} = $value; |
|
| 148 | } |
|
| 149 | } else { |
|
| 150 | $this->{$blob} = $value; |
|
| 151 | } |
|
| 152 | ||
| 153 | return $this; |
|
| 154 | } |
|
| 155 | ||
| 156 | public static function htmlizer($string) |
|
| 157 | { |
|