include/export_utils.php
Functions
export(
string $type, array $records
=
null, $members
=
false, $sample
=
false
)
:
stringbuilds up a delimited string for export
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $type | string | type the bean-type to export |
| $records | array | records an array of records if coming directly from a query |
| $members | ||
| $sample |
| Type | Description |
|---|---|
| string | delimited string for export |
exportSample(
string $type
)
:
stringcalls export method to build up a delimited string and some sample instructional text on how to use this file
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $type | string | type the bean-type to export |
| Type | Description |
|---|---|
| string | delimited string for export with some tutorial text |
getDelimiter(
)
:
stringgets the system default delimiter or an user-preference based override
Returns
| Type | Description |
|---|---|
| string | the delimiter |
get_field_order_mapping(
$name
=
'', $reorderArr
=
'', $exclude
=
true
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $name | ||
| $reorderArr | ||
| $exclude |
returnFakeDataRow(
$focus, $field_array, $rowsToReturn
=
5
)
:
void
Parameters
| Name | Type | Description |
|---|---|---|
| $focus | ||
| $field_array | ||
| $rowsToReturn |