Method |
Description |
|
convertDate ( integer | string $date ) : string |
Converts given time to format: 1995-12-31T23:59:59Z. |
|
convertDateTimeObject ( DateTime $dateTime, boolean $includeTimezone = true ) : string |
Convert a \DateTime object to format: 1995-12-31T23:59:59Z+02:00. |
|
convertRequestToCurlCommand ( Request $request ) : string |
Converts Request to Curl console command. |
|
escapeTerm ( string $term ) : string |
Escapes the following terms (because part of the query language)
+ - && || ! ( ) { } [ ] ^ " ~ * ? : \ < >. |
|
getParamName ( $class ) : string |
Tries to guess the name of the param, based on its class
Example: \Elastica\Filter\HasChildFilter => has_child. |
|
replaceBooleanWords ( string $term ) : string |
Replace the following reserved words (because part of the query language)
AND OR NOT. |
|
replaceBooleanWordsAndEscapeTerm ( string $term ) : string |
Replace the following reserved words: AND OR NOT
and
escapes the following terms: + - && || ! ( ) { } [ ] ^ " ~ * ? : \. |
|
toCamelCase ( string $string ) : string |
Converts a snake_case string to CamelCase. |
|
toSnakeCase ( string $string ) : string |
Converts a CamelCase string to snake_case. |
|