Simplified use of Indivo's Query API.
More...
#import <INQueryParameter.h>
Inherits NSObject.
Simplified use of Indivo's Query API.
- (void) addFilter: |
|
(NSString *) |
filterKey |
withValue: |
|
(NSString *) |
filterValue |
|
|
| |
- (void) addParameter: |
|
(NSString *) |
aParameter |
withValue: |
|
(NSString *) |
paramValue |
|
|
| |
Adds a custom parameter.
If it matches one of the supported types, that one is used instead.
- (id) initWithQueryString: |
|
(NSString *) |
aQuery |
|
Initializes the receiver with information found in the query string.
- (NSArray *) queryParameters |
|
|
|
The query parameters currently defined in the receiver.
- Returns
- An array full of NSString in the form "key=value", not yet URL-escaped.
- (void) removeFilterForKey: |
|
(NSString *) |
filterKey |
|
Removes a filter, if it exists.
- (void) removeParameterForKey: |
|
(NSString *) |
aKey |
|
Unsets a custom parameter.
If it matches a supported type, that one is unset instead (NOT YET IMPLEMENTED)
- Todo:
- unset built-in parameter
- (void) setFromQueryString: |
|
(NSString *) |
aQuery |
|
Sets the receivers properties from the supplied query string.
- Attention
- Existing values will only be altered if they are present in the query string, unaffected values will not be reset to default.
-
Filters cannot be automatically parsed.
- Parameters
-
aQuery | A query string, e.g. "offset=20&limit=20", from which to parse the properties |
- (BOOL) updateFromParameter: |
|
(NSString *) |
aParameter |
withValue: |
|
(NSString *) |
paramValue |
|
|
| |
Sets the internal state represented by the given parameter string, according to the key.
- Returns
- YES if the parameter is handled internally, NO otherwise
- (NSString*) aggregateBy |
|
readwritenonatomiccopy |
The field by which to aggregate.
- (INAggregationOperator) aggregateOperator |
|
readwritenonatomicassign |
The operator to apply to the "aggregateBy" field.
- (NSString*) dateGroupField |
|
readwritenonatomiccopy |
The field which to group according to "dateGroupIncrement".
- (INDateGroup) dateGroupIncrement |
|
readwritenonatomicassign |
The increment for date grouping.
End date of the date range in field "dateRangeField".
- (NSString*) dateRangeField |
|
readwritenonatomiccopy |
The field upon which to limit the date range.
- (NSDate*) dateRangeStart |
|
readwritenonatomicstrong |
Starting date of the date range in field "dateRangeField".
NO by default, if YES the ordering is reversed.
- (NSDictionary*) filters |
|
readwritenonatomiccopy |
The filters to be applied, not URL-escaped (this will be done for you)
Group by values of this field. If "orderBy" is not nil it will be reset to this value.
How many items to get, 0 by default which will return the server's default.
The offset where to start, 0 by default.
The field by which to order.
- (INDocumentStatus) status |
|
readwritenonatomicassign |
The status of the documents, INDocumentStatusUnknown by default.
The documentation for this class was generated from the following files:
- IndivoFramework/Classes/INQueryParameter.h
- IndivoFramework/Classes/INQueryParameter.m