|
@@ 608-617 (lines=10) @@
|
| 605 |
|
* @see getTables() |
| 606 |
|
* @link http://www.bamboohr.com/api/documentation/tables.php#addRow |
| 607 |
|
*/ |
| 608 |
|
function addTableRow($employeeId, $tableName, $values) { |
| 609 |
|
$request=new BambooHTTPRequest(); |
| 610 |
|
$request->method="POST"; |
| 611 |
|
$request->url=$this->baseUrl."/v1/employees/".intval($employeeId)."/tables/".$tableName."/"; |
| 612 |
|
|
| 613 |
|
$xml="<row>".$this->prepareKeyValues($values)."</row>"; |
| 614 |
|
$request->content=$xml; |
| 615 |
|
|
| 616 |
|
return $this->httpHandler->sendRequest( $request ); |
| 617 |
|
} |
| 618 |
|
|
| 619 |
|
/** |
| 620 |
|
* |
|
@@ 734-743 (lines=10) @@
|
| 731 |
|
* @link http://www.bamboohr.com/api/documentation/tables.php#updateRow |
| 732 |
|
* @see getTables() |
| 733 |
|
*/ |
| 734 |
|
function updateTableRow($employeeId, $tableName, $rowId, $values) { |
| 735 |
|
$request=new BambooHTTPRequest(); |
| 736 |
|
$request->method="POST"; |
| 737 |
|
$request->url=$this->baseUrl."/v1/employees/".intval($employeeId)."/tables/".$tableName."/".intval($rowId); |
| 738 |
|
|
| 739 |
|
$xml="<row>".$this->prepareKeyValues($values)."</row>"; |
| 740 |
|
$request->content=$xml; |
| 741 |
|
|
| 742 |
|
return $this->httpHandler->sendRequest( $request ); |
| 743 |
|
} |
| 744 |
|
|
| 745 |
|
/** |
| 746 |
|
* |