@@ 889-902 (lines=14) @@ | ||
886 | * @return \BambooHR\API\BambooHTTPResponse |
|
887 | * @link http://www.bamboohr.com/api/documentation/employees.php#updateEmployeeFile |
|
888 | */ |
|
889 | function updateEmployeeFile($employeeId, $fileId, $values){ |
|
890 | $request=new BambooHTTPRequest(); |
|
891 | $request->method="POST"; |
|
892 | $request->url=$this->baseUrl."/v1/employees/".intval($employeeId)."/files/".intval($fileId)."/"; |
|
893 | ||
894 | $xml = "<file>"; |
|
895 | foreach($values as $name=>$value){ |
|
896 | $xml.="<".htmlspecialchars($name).">".htmlspecialchars($value)."</".htmlspecialchars($name).">"; |
|
897 | } |
|
898 | $xml.="</file>"; |
|
899 | $request->content=$xml; |
|
900 | ||
901 | return $this->httpHandler->sendRequest($request); |
|
902 | } |
|
903 | ||
904 | /** |
|
905 | * |
|
@@ 911-924 (lines=14) @@ | ||
908 | * @return \BambooHR\API\BambooHTTPResponse |
|
909 | * @link http://www.bamboohr.com/api/documentation/employees.php#updateCompanyFile |
|
910 | */ |
|
911 | function updateCompanyFile($fileId, $values){ |
|
912 | $request=new BambooHTTPRequest(); |
|
913 | $request->method="POST"; |
|
914 | $request->url=$this->baseUrl."/v1/files/".intval($fileId)."/"; |
|
915 | ||
916 | $xml = "<file>"; |
|
917 | foreach($values as $name=>$value){ |
|
918 | $xml.="<".htmlspecialchars($name).">".htmlspecialchars($value)."</".htmlspecialchars($name).">"; |
|
919 | } |
|
920 | $xml.="</file>"; |
|
921 | $request->content=$xml; |
|
922 | ||
923 | return $this->httpHandler->sendRequest($request); |
|
924 | } |
|
925 | ||
926 | /** |
|
927 | * |