|
| __construct () |
| Constructor. More...
|
|
| getJobPosition ($id) |
| Get properties of a jobposition object. More...
|
|
| getCandidature ($id) |
| Get properties of a candidature object. More...
|
|
| indexJobPosition ($sortfield="t.rowid", $sortorder='ASC', $limit=100, $page=0, $sqlfilters='') |
| List jobpositions. More...
|
|
| indexCandidature ($sortfield="t.rowid", $sortorder='ASC', $limit=100, $page=0, $sqlfilters='') |
| List candatures. More...
|
|
| postJobPosition ($request_data=null) |
| Create jobposition object. More...
|
|
| postCandidature ($request_data=null) |
| Create candidature object. More...
|
|
| putJobPosition ($id, $request_data=null) |
| Update jobposition. More...
|
|
| putCandidature ($id, $request_data=null) |
| Update candidature. More...
|
|
| deleteJobPosition ($id) |
| Delete jobposition. More...
|
|
| deleteCandidature ($id) |
| Delete candidature. More...
|
|
| __construct ($db, $cachedir='', $refreshCache=false) |
| Constructor. More...
|
|
Definition at line 37 of file api_recruitment.class.php.
◆ __construct()
Recruitment::__construct |
( |
| ) |
|
◆ _cleanObjectDatas()
Recruitment::_cleanObjectDatas |
( |
|
$object | ) |
|
|
protected |
Clean sensible object datas.
- Parameters
-
Object | $object | Object to clean |
- Returns
- Object Object with cleaned properties
Reimplemented from DolibarrApi.
Definition at line 574 of file api_recruitment.class.php.
◆ _validate()
Recruitment::_validate |
( |
|
$data | ) |
|
|
private |
◆ deleteCandidature()
Recruitment::deleteCandidature |
( |
|
$id | ) |
|
Delete candidature.
- Parameters
-
- Returns
- array
- Exceptions
-
RestException | @url DELETE candidature/{id} |
Definition at line 540 of file api_recruitment.class.php.
◆ deleteJobPosition()
Recruitment::deleteJobPosition |
( |
|
$id | ) |
|
Delete jobposition.
- Parameters
-
- Returns
- array
- Exceptions
-
RestException | @url DELETE jobposition/{id} |
Definition at line 504 of file api_recruitment.class.php.
◆ getCandidature()
Recruitment::getCandidature |
( |
|
$id | ) |
|
Get properties of a candidature object.
Return an array with candidature informations
- Parameters
-
- Returns
- array|mixed data without useless information
@url GET candidature/{id}
- Exceptions
-
RestException | 401 Not allowed |
RestException | 404 Not found |
Definition at line 108 of file api_recruitment.class.php.
◆ getJobPosition()
Recruitment::getJobPosition |
( |
|
$id | ) |
|
Get properties of a jobposition object.
Return an array with jobposition informations
- Parameters
-
- Returns
- array|mixed data without useless information
@url GET jobposition/{id}
- Exceptions
-
RestException | 401 Not allowed |
RestException | 404 Not found |
Definition at line 77 of file api_recruitment.class.php.
◆ indexCandidature()
Recruitment::indexCandidature |
( |
|
$sortfield = "t.rowid" , |
|
|
|
$sortorder = 'ASC' , |
|
|
|
$limit = 100 , |
|
|
|
$page = 0 , |
|
|
|
$sqlfilters = '' |
|
) |
| |
List candatures.
Get a list of candidatures
- Parameters
-
string | $sortfield | Sort field |
string | $sortorder | Sort order |
int | $limit | Limit for list |
int | $page | Page number |
string | $sqlfilters | Other criteria to filter answers separated by a comma. Syntax example "(t.ref:like:'SO-%') and (t.date_creation:<:'20160101')" |
- Returns
- array Array of order objects
- Exceptions
-
RestException | @url GET /candidature/ |
Definition at line 251 of file api_recruitment.class.php.
◆ indexJobPosition()
Recruitment::indexJobPosition |
( |
|
$sortfield = "t.rowid" , |
|
|
|
$sortorder = 'ASC' , |
|
|
|
$limit = 100 , |
|
|
|
$page = 0 , |
|
|
|
$sqlfilters = '' |
|
) |
| |
List jobpositions.
Get a list of jobpositions
- Parameters
-
string | $sortfield | Sort field |
string | $sortorder | Sort order |
int | $limit | Limit for list |
int | $page | Page number |
string | $sqlfilters | Other criteria to filter answers separated by a comma. Syntax example "(t.ref:like:'SO-%') and (t.date_creation:<:'20160101')" |
- Returns
- array Array of order objects
- Exceptions
-
RestException | @url GET /jobposition/ |
Definition at line 143 of file api_recruitment.class.php.
◆ postCandidature()
Recruitment::postCandidature |
( |
|
$request_data = null | ) |
|
Create candidature object.
- Parameters
-
array | $request_data | Request datas |
- Returns
- int ID of candidature
- Exceptions
-
RestException | @url POST candidature/ |
Definition at line 385 of file api_recruitment.class.php.
◆ postJobPosition()
Recruitment::postJobPosition |
( |
|
$request_data = null | ) |
|
Create jobposition object.
- Parameters
-
array | $request_data | Request datas |
- Returns
- int ID of jobposition
- Exceptions
-
RestException | @url POST jobposition/ |
Definition at line 353 of file api_recruitment.class.php.
◆ putCandidature()
Recruitment::putCandidature |
( |
|
$id, |
|
|
|
$request_data = null |
|
) |
| |
Update candidature.
- Parameters
-
int | $id | Id of candidature to update |
array | $request_data | Datas |
- Returns
- int
- Exceptions
-
RestException | @url PUT candidature/{id} |
Definition at line 461 of file api_recruitment.class.php.
◆ putJobPosition()
Recruitment::putJobPosition |
( |
|
$id, |
|
|
|
$request_data = null |
|
) |
| |
Update jobposition.
- Parameters
-
int | $id | Id of jobposition to update |
array | $request_data | Datas |
- Returns
- int
- Exceptions
-
RestException | @url PUT jobposition/{id} |
Definition at line 418 of file api_recruitment.class.php.
The documentation for this class was generated from the following file: