| @@ 67-75 (lines=9) @@ | ||
| 64 | * |
|
| 65 | * @param string $types |
|
| 66 | */ |
|
| 67 | public function setTypes($types) |
|
| 68 | { |
|
| 69 | $data = @unserialize($types); |
|
| 70 | if ($types === 'b:0;' || $data !== false) { |
|
| 71 | $this->types = $types; |
|
| 72 | } else { |
|
| 73 | $this->types = serialize($types); |
|
| 74 | } |
|
| 75 | } |
|
| 76 | ||
| 77 | /** |
|
| 78 | * @return string the type of business property |
|
| @@ 145-153 (lines=9) @@ | ||
| 142 | * |
|
| 143 | * @param string $choices |
|
| 144 | */ |
|
| 145 | public function setChoices($choices) |
|
| 146 | { |
|
| 147 | $data = @unserialize($choices); |
|
| 148 | if ($choices === 'b:0;' || $data !== false) { |
|
| 149 | $this->choices = $choices; |
|
| 150 | } else { |
|
| 151 | $this->choices = serialize($choices); |
|
| 152 | } |
|
| 153 | } |
|
| 154 | ||
| 155 | /** |
|
| 156 | * @return string the choice of business property |
|
| @@ 213-223 (lines=11) @@ | ||
| 210 | * |
|
| 211 | * @return Widget |
|
| 212 | */ |
|
| 213 | public function setFields($fields) |
|
| 214 | { |
|
| 215 | $data = @unserialize($fields); |
|
| 216 | if ($fields === 'b:0;' || $data !== false) { |
|
| 217 | $this->fields = $fields; |
|
| 218 | } else { |
|
| 219 | $this->fields = serialize($fields); |
|
| 220 | } |
|
| 221 | ||
| 222 | return $this; |
|
| 223 | } |
|
| 224 | ||
| 225 | /** |
|
| 226 | * Get fields. |
|