ViewsDataHelper
class ViewsDataHelper (View source)
Defines a helper class for stuff related to views data.
Properties
| protected ViewsData | $data | The views data object, containing the cached information. |
|
| protected array | $fields | A prepared list of all fields, keyed by base_table and handler type. |
Methods
array
fetchFields(array|string $base, string $type, bool $grouping = FALSE, string $sub_type = NULL)
Fetches a list of all fields available for a given base type.
static int
fetchedFieldSort(array $a, array $b)
Sort function for fetched fields.
Details
__construct(ViewsData $views_data)
Constructs a ViewsData object.
array
fetchFields(array|string $base, string $type, bool $grouping = FALSE, string $sub_type = NULL)
Fetches a list of all fields available for a given base type.
static protected int
fetchedFieldSort(array $a, array $b)
Sort function for fetched fields.