Skip to content

fetchParams updated to parse through the supplied where clause

Craig Smith requested to merge feature/where_params_format into master

Fetch Params Method updated

  • updated fetchParams to format the get params according to zon api methods a little better,
  • updated fetchParams to parse objects into key=>Value pairs

Example:

searchCriteria:{
 areas_of_expertise:["294", "50", "4"],
 connected_location:{country: "Australia", zone: "Tasmania", city: null}
 current_firm:"5355",
 current_location:{country: "New Zealand", zone: "Canterbury", city: null},
 keywords:["mykeyword", "mynextword"],
 pqe_range:{min: 10, max: 20},
 previous_firm:"726",
 qualifications:["533", "46", "420"],
 university:"1"
}

Will come out as

Array
(
    [pqe_range] => Array
        (
            [min] => 10
            [max] => 20
        )

    [keywords] => mykeyword||mynextword
    [areas_of_expertise] => 294||50||4
    [current_location] => Array
        (
            [country] => New Zealand
            [zone] => Canterbury
            [city] => null
        )

    [university] => 1
    [connected_location] => Array
        (
            [country] => New Zealand
            [zone] => null
            [city] => null
        )

    [qualifications] => 533
    [current_firm] => 5355
    [previous_firm] => 726
    [tester] => 1||2
)

Merge request reports