Function __global->get_catalogue_fields
Definitions
sources/fields.php
- Ensure a catalogues fields are loaded up in a cache, and return them.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $catalogue_name | ?ID_TEXT | No | No | Null | N/A | N/A | The name of the catalogue (null: all catalogues) |
Returns
- The fields (empty array if the catalogue does not exist)
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Ensure a catalogues fields are loaded up in a cache, and return them.
*
* @param ?ID_TEXT $catalogue_name The name of the catalogue (null: all catalogues)
* @return array The fields (empty array if the catalogue does not exist)
*/
function get_catalogue_fields(?string $catalogue_name = null) : array
* Ensure a catalogues fields are loaded up in a cache, and return them.
*
* @param ?ID_TEXT $catalogue_name The name of the catalogue (null: all catalogues)
* @return array The fields (empty array if the catalogue does not exist)
*/
function get_catalogue_fields(?string $catalogue_name = null) : array

