Recruitments
class Recruitments extends DolibarrApi (View source)
API class for recruitment
Properties
| protected DoliDB | $db | from DolibarrApi | |
| Restler | $r | from DolibarrApi | |
| RecruitmentJobPosition | $jobposition | ||
| RecruitmentCandidature | $candidature |
Methods
Constructor
Check and convert a string depending on its type/name.
Filter properties that will be returned on object
Clean sensible object datas
Check access by user to a given resource
Return if a $sqlfilters parameter is valid Function no more used. Kept for backward compatibility with old APIs of modules
Function to forge a SQL criteria from a Generic filter string.
Get properties of a jobposition object
Get properties of a candidature object
List jobpositions
List candatures
Create jobposition object
Create candidature object
Update jobposition
Update candidature
Delete jobposition
Delete candidature
Details
__construct()
Constructor
protected string|array<string, mixed>
_checkValForAPI(string $field, string|string[] $value, object $object)
Check and convert a string depending on its type/name.
protected object
_filterObjectProperties(object $object, string $properties)
Filter properties that will be returned on object
protected object
_cleanObjectDatas(object $object)
Clean sensible object datas
static protected bool
_checkAccessToResource(string $resource, int $resource_id = 0, string $dbtablename = '', string $feature2 = '', string $dbt_keyfield = 'fk_soc', string $dbt_select = 'rowid')
Check access by user to a given resource
protected bool|string
_checkFilters(string $sqlfilters, string $error = '')
Return if a $sqlfilters parameter is valid Function no more used. Kept for backward compatibility with old APIs of modules
static protected string
_forge_criteria_callback(string[] $matches)
Function to forge a SQL criteria from a Generic filter string.
Function no more used. Kept for backward compatibility with old APIs of modules
object
getJobPosition(int $id)
Get properties of a jobposition object
Return an array with jobposition information
object
getCandidature(int $id)
Get properties of a candidature object
Return an array with candidature information
array
indexJobPosition(string $sortfield = "t.rowid", string $sortorder = 'ASC', int $limit = 100, int $page = 0, string $sqlfilters = '', string $properties = '', bool $pagination_data = false)
List jobpositions
Get a list of jobpositions
array
indexCandidature(string $sortfield = "t.rowid", string $sortorder = 'ASC', int $limit = 100, int $page = 0, string $sqlfilters = '', string $properties = '', bool $pagination_data = false)
List candatures
Get a list of candidatures
int
postJobPosition(array $request_data = null)
Create jobposition object
int
postCandidature(array $request_data = null)
Create candidature object
object
putJobPosition(int $id, array $request_data = null)
Update jobposition
object
putCandidature(int $id, array $request_data = null)
Update candidature
array
deleteJobPosition(int $id)
Delete jobposition
array
deleteCandidature(int $id)
Delete candidature