| @@ 271-277 (lines=7) @@ | ||
| 268 | // Raw type might be negative when using the fully optimized form |
|
| 269 | // of stdclass, which indicates allow_null == true |
|
| 270 | $rtype = is_int($def) ? $def : $def->type; |
|
| 271 | if ($rtype < 0) { |
|
| 272 | $type = -$rtype; |
|
| 273 | $allow_null = true; |
|
| 274 | } else { |
|
| 275 | $type = $rtype; |
|
| 276 | $allow_null = isset($def->allow_null); |
|
| 277 | } |
|
| 278 | ||
| 279 | try { |
|
| 280 | $value = $this->parser->parse($value, $type, $allow_null); |
|
| @@ 163-169 (lines=7) @@ | ||
| 160 | ||
| 161 | $ret .= $this->start('td'); |
|
| 162 | $def = $this->config->def->info["$ns.$directive"]; |
|
| 163 | if (is_int($def)) { |
|
| 164 | $allow_null = $def < 0; |
|
| 165 | $type = abs($def); |
|
| 166 | } else { |
|
| 167 | $type = $def->type; |
|
| 168 | $allow_null = isset($def->allow_null); |
|
| 169 | } |
|
| 170 | if (!isset($this->fields[$type])) $type = 0; // default |
|
| 171 | $type_obj = $this->fields[$type]; |
|
| 172 | if ($allow_null) { |
|