Skip to content

Commit

Permalink
Merge pull request #1 from Communauts/timosillander-patch-1
Browse files Browse the repository at this point in the history
Add $options handling to filter_by_view
  • Loading branch information
hphuhtin committed Nov 25, 2015
2 parents 88e08e8 + ecbeb27 commit 33cbfaf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions models/PodioItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,9 @@ public static function filter($app_id, $attributes = array(), $options = array()
/**
* @see https://developers.podio.com/doc/items/filter-items-by-view-4540284
*/
public static function filter_by_view($app_id, $view_id, $attributes = array()) {
return self::collection(Podio::post("/item/app/{$app_id}/filter/{$view_id}/", $attributes ? $attributes : new StdClass()), "PodioItemCollection");
public static function filter_by_view($app_id, $view_id, $attributes = array(), $options = array()) {
$url = Podio::url_with_options("/item/app/{$app_id}/filter/{$view_id}/", $options);
return self::collection(Podio::post($url, $attributes ? $attributes : new StdClass()), "PodioItemCollection");
}

/**
Expand Down

0 comments on commit 33cbfaf

Please sign in to comment.