| @@ 443-455 (lines=13) @@ | ||
| 440 | * |
|
| 441 | * @return Array All field values in their CSV representation indexed by their name. |
|
| 442 | */ |
|
| 443 | function get_content_csv() |
|
| 444 | { |
|
| 445 | $result = Array(); |
|
| 446 | foreach ($this->schema->field_order as $name) |
|
| 447 | { |
|
| 448 | if ($this->_schema_field_is_broken($name)) |
|
| 449 | { |
|
| 450 | continue; |
|
| 451 | } |
|
| 452 | $result[$name] = $this->types[$name]->convert_to_csv(); |
|
| 453 | } |
|
| 454 | return $result; |
|
| 455 | } |
|
| 456 | ||
| 457 | /** |
|
| 458 | * Little helper function returning an associative array of all field values converted to email-friendly format |
|
| @@ 463-475 (lines=13) @@ | ||
| 460 | * |
|
| 461 | * @return Array All field values in their CSV representation indexed by their name. |
|
| 462 | */ |
|
| 463 | function get_content_email() |
|
| 464 | { |
|
| 465 | $result = Array(); |
|
| 466 | foreach ($this->schema->field_order as $name) |
|
| 467 | { |
|
| 468 | if ($this->_schema_field_is_broken($name)) |
|
| 469 | { |
|
| 470 | continue; |
|
| 471 | } |
|
| 472 | $result[$name] = $this->types[$name]->convert_to_email(); |
|
| 473 | } |
|
| 474 | return $result; |
|
| 475 | } |
|
| 476 | ||
| 477 | /** |
|
| 478 | * Get all field values converted to their raw storage representation |
|
| @@ 482-494 (lines=13) @@ | ||
| 479 | * |
|
| 480 | * @return Array All field values in their raw storage representation indexed by their name. |
|
| 481 | */ |
|
| 482 | function get_content_raw() |
|
| 483 | { |
|
| 484 | $result = Array(); |
|
| 485 | foreach ($this->schema->field_order as $name) |
|
| 486 | { |
|
| 487 | if ($this->_schema_field_is_broken($name)) |
|
| 488 | { |
|
| 489 | continue; |
|
| 490 | } |
|
| 491 | $result[$name] = $this->types[$name]->convert_to_raw(); |
|
| 492 | } |
|
| 493 | return $result; |
|
| 494 | } |
|
| 495 | ||
| 496 | /** |
|
| 497 | * This function displays a quick view of the record, using some simple div based layout, |
|