Latest 0.1
Homepage https://github.com/mkral/MLKRestfullYii
License MIT
Platforms ios
Authors

This is a helper class to easily create filters for the Yii extension restfullyii.

To use:

// You can create NSDictionaries, JSON Strings, or RYiiFilter objects and convert them to dictionaries/json strings later.

//Examples:
//NSDictionary * genderFilter = [RYiiFilter dictionaryFilterProperty:@"gender" withValue:@"female"] operator:RYiiOperatorLike];
//NSString * ageFilter = [RYiiFilter jsonFilterProperty:@"age" withValue:@25 operator:RYiiOperatorGreaterOrEqual];

RYiiFilter * roleFilter =  [RYiiFilter filterProperty:@"role" withValue:@[@"admin",@"manager"] operator:RYiiOperatorIn];
RYiiFilter * genderFilter = [RYiiFilter filterProperty:@"gender" withValue:@"female" operator:RYiiOperatorLike];
RYiiFilter * ageFilter = [RYiiFilter filterProperty:@"age" withValue:@25 operator:RYiiOperatorGreaterOrEqual];

//You can then create a nsdictionary with the json filters to use with your urlrequest (in this example I'm using RestKit "parameters")
NSDictionary * parameters = @{@"filter":[RestfullYii jsonStringForFilters:@[roleFilter, genderFilter, ageFilter]};

Latest podspec

{
    "name": "MLKRestfullYii",
    "platforms": {
        "ios": null
    },
    "version": "0.1",
    "summary": "This is a helper class to easily create filters for the Yii extension restfullyii",
    "authors": {
        "Michael Kral": "[email protected]"
    },
    "homepage": "https://github.com/mkral/MLKRestfullYii",
    "license": "MIT",
    "source": {
        "git": "https://github.com/mkral/MLKRestfullYii.git",
        "tag": "0.1"
    },
    "source_files": "MLKRestfullYii*.{h,m}",
    "requires_arc": false
}

Pin It on Pinterest

Share This