ARSperl Manual - ars_GetListField

## `ars_GetListField(control,schema,changedsince=0,fieldType)`

Fetches the Field ID's for all fields in the schema specified. `changedsince` is an optional unix timestamp and defaults to 0.

The `fieldType` parameter allows you to specify what field type(s) to retrieve. This is a bitmask.

- Bit 0: Retrieve data fields (AR_FIELD_TYPE_DATA).
- Bit 1: Retrieve trim fields (AR_FIELD_TYPE_TRIM).
- Bit 2: Retrieve control fields (AR_FIELD_TYPE_CONTROL).
- Bit 3: Retrieve page fields (AR_FIELD_TYPE_PAGE).
- Bit 4: Retrieve page holder fields (AR_FIELD_TYPE_PAGE_HOLDER).
- Bit 5: Retrieve table fields (AR_FIELD_TYPE_TABLE).
- Bit 6: Retrieve column fields (AR_FIELD_TYPE_COLUMN).
- Bit 8: Retrieve vendor type fields (AR_FIELD_TYPE_VENDOR).
- Bit 128: Retrieve attachment type fields (AR_FIELD_TYPE_ATTACH).
- Bit 256: Retrieve attachement pool type fields (AR_FIELD_TYPE_ATTACH_POOL)

Ergo, fieldType = 6 will return trim and control fields.

On success
  Returns an array of field ids.
On failure
  Returns `undef`.

Example:

     @fields = ars_GetListField($c, "User");

Back to Table of Contents