|
@@ 849-860 (lines=12) @@
|
| 846 |
|
* @return \BambooHR\API\BambooHTTPResponse |
| 847 |
|
* @link http://www.bamboohr.com/api/documentation/employees.php#addEmployeeCategory |
| 848 |
|
*/ |
| 849 |
|
function addEmployeeFileCategory($categoryName){ |
| 850 |
|
$request=new BambooHTTPRequest(); |
| 851 |
|
$request->method="POST"; |
| 852 |
|
$request->url=$this->baseUrl."/v1/employees/files/categories/"; |
| 853 |
|
|
| 854 |
|
$xml='<employee>'; |
| 855 |
|
$xml.='<category>'.htmlspecialchars($categoryName).'</category>'; |
| 856 |
|
$xml.='</employee>'; |
| 857 |
|
$request->content=$xml; |
| 858 |
|
|
| 859 |
|
return $this->httpHandler->sendRequest($request); |
| 860 |
|
} |
| 861 |
|
|
| 862 |
|
/** |
| 863 |
|
* |
|
@@ 868-879 (lines=12) @@
|
| 865 |
|
* @return \BambooHR\API\BambooHTTPResponse |
| 866 |
|
* @link http://www.bamboohr.com/api/documentation/employees.php#addCompanyCategory |
| 867 |
|
*/ |
| 868 |
|
function addCompanyFileCategory($categoryName){ |
| 869 |
|
$request=new BambooHTTPRequest(); |
| 870 |
|
$request->method="POST"; |
| 871 |
|
$request->url=$this->baseUrl."/v1/files/categories/"; |
| 872 |
|
|
| 873 |
|
$xml='<files>'; |
| 874 |
|
$xml.='<category>'.htmlspecialchars($categoryName).'</category>'; |
| 875 |
|
$xml.='</files>'; |
| 876 |
|
$request->content=$xml; |
| 877 |
|
|
| 878 |
|
return $this->httpHandler->sendRequest($request); |
| 879 |
|
} |
| 880 |
|
|
| 881 |
|
/** |
| 882 |
|
* |