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 )); }