diff --git a/src/ET_DataExtension_Row.php b/src/ET_DataExtension_Row.php index 63dbfff..8d9c5f4 100644 --- a/src/ET_DataExtension_Row.php +++ b/src/ET_DataExtension_Row.php @@ -85,7 +85,30 @@ public function patch() $this->props = $originalProps; return $response; } - + + /** + * Put this instance. + * @return ET_Patch Object of type ET_Patch which contains http status code, response, etc from the PATCH SOAP service + */ + public function put() + { + $this->getCustomerKey(); + $originalProps = $this->props; + $overrideProps = array(); + $fields = array(); + + foreach ($this->props as $key => $value){ + $fields[] = array("Name" => $key, "Value" => $value); + } + $overrideProps['CustomerKey'] = $this->CustomerKey; + $overrideProps['Properties'] = array("Property"=> $fields); + + $this->props = $overrideProps; + $response = parent::put(); + $this->props = $originalProps; + return $response; + } + /** * Delete this instance. * @return ET_Delete Object of type ET_Delete which contains http status code, response, etc from the DELETE SOAP service @@ -151,4 +174,4 @@ private function getCustomerKey() } } } -?> \ No newline at end of file +?>