Returns the names of all fields in a table or data source.
Syntax
$settings->getFieldsList();
Arguments
No arguments.
Return value
An array containing field names. Returns an empty array if the data source has no fields.
Example
Display every field name and its label from the Customers table.
$settings = new ProjectSettings("Customers");
foreach ($settings->getFieldsList() as $field)
{
echo $field . ": " . $settings->label($field) . "<br>";
}
See also: