SearchHelper
class SearchHelper (View source)
Helper class for Search parameter building for Rokka.io service.
Methods
static bool
validateFieldName(string $fieldName)
Validates the field name.
static string
buildSearchSortParameter(array $sorts)
Builds the "sort" parameter for the source image listing API endpoint.
Details
static bool
validateFieldName(string $fieldName)
Validates the field name.
static string
buildSearchSortParameter(array $sorts)
Builds the "sort" parameter for the source image listing API endpoint.
The sort direction can either be: "asc", "desc" (or the boolean TRUE value, treated as "asc")