From 5f000ce571dba10d6006e6a0fdbbbc91a2220ab1 Mon Sep 17 00:00:00 2001 From: Damien Poulain Date: Mon, 5 Jan 2015 09:31:32 -0800 Subject: [PATCH] TRIPIT-48011 [Parking Trip Item: update API v1 bindings - PHP] --- tripit.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tripit.php b/tripit.php index 046ee25..45da323 100644 --- a/tripit.php +++ b/tripit.php @@ -344,6 +344,11 @@ function get_car($id, $filter = array()) { return $this->_parse_command(__FUNCTION__, $filter); } + function get_parking($id, $filter = array()) { + $filter['id'] = $id; + return $this->_parse_command(__FUNCTION__, $filter); + } + function get_rail($id, $filter = array()) { $filter['id'] = $id; return $this->_parse_command(__FUNCTION__, $filter); @@ -413,6 +418,11 @@ function delete_car($id, $filter = array()) { return $this->_parse_command(__FUNCTION__, $filter); } + function delete_parking($id, $filter = array()) { + $filter['id'] = $id; + return $this->_parse_command(__FUNCTION__, $filter); + } + function delete_rail($id, $filter = array()) { $filter['id'] = $id; return $this->_parse_command(__FUNCTION__, $filter); @@ -469,6 +479,10 @@ function replace_car($id, $data, $format = 'xml') { return $this->_parse_command(__FUNCTION__, null, array( 'id' => $id, 'format' => $format, $format => $data )); } + function replace_parking($id, $data, $format = 'xml') { + return $this->_parse_command(__FUNCTION__, null, array( 'id' => $id, 'format' => $format, $format => $data )); + } + function replace_rail($id, $data, $format = 'xml') { return $this->_parse_command(__FUNCTION__, null, array( 'id' => $id, 'format' => $format, $format => $data )); }