EmployeeHandler

This class contains the functions to perform the following:

Retrieve:

  • Employee(s)
  • Contractor(s)

api
package simPROAPI
subpackage Staff
author Nathan Muir
version 2011-08-15

 Methods

StaffAttachmentsRetrieve

AttachmentsRetrieve(int $CompanyID, int $StaffID) : array
Static

This function retrieves the list of attachemnts for the provided staff id

Parameters

$CompanyID

int

the Company ID. In single company builds, this is 0.

$StaffID

int

The staff member to retrieve licences for

Returns

array

StaffLicencesSearch

LicencesSearch(int $CompanyID, string $Search = '%') : array
Static

This function retrieves licences for all staff under a company

Parameters

$CompanyID

int

the Company ID. In single company builds, this is 0.

$Search = '%'

string

The search string for the licence name.

Returns

array

StaffRetrieveList

RetrieveList(int $CompanyID, array $StaffIDs) : array
Static

This function retrieves details on the provided list of staff ids

uses \EmployeeHandler::RetrieveList()
uses \ContractorHandler::RetrieveList()
used_by \EmployeeHandler::RetrieveList()
used_by \PlantHandler::RetrieveList()

Parameters

$CompanyID

int

the Company ID. In single company builds, this is 0.

$StaffIDs

array

list of Staff ID's to retrieve (must be int only)

Returns

array