TimeTrex API Manual

TimeTrexSoapServerUnAuthenticated
in package

Table of Contents

$user_id_to_timeclock_user_id_map  : mixed
__call()  : bool
getBranches()  : array<string|int, mixed>|bool
getClientConfig()  : array<string|int, mixed>
getClientVersion()  : bool
getCompanyObject()  : bool|object
getDepartments()  : array<string|int, mixed>|bool
getJobItems()  : array<string|int, mixed>|bool
getJobs()  : array<string|int, mixed>|bool
getJobtoJobItemMap()  : array<string|int, mixed>|bool
getJobtoUserMap()  : array<string|int, mixed>|bool
getLatestVersion()  : string
Check for updates each day... And on startup, and allow a menu option to force a check.
getLatestVersionMD5()  : string
getLatestVersionURL()  : string
getOtherFields()  : bool
getStationObject()  : bool|object
getTime()  : int
getTimeOffset()  : int
getUserIdentifiers()  : array<string|int, mixed>|bool
getUsers()  : array<string|int, mixed>|bool
isGoodTimeToUpgrade()  : int
Ask server if its a good time to upgrade. That way the server can take load in to account, as well as check the schedule on this station, and make sure people aren't about to punch in!
isLatestData()  : array<string|int, mixed>|bool
isLatestVersion()  : bool
Login()  : bool|null
ping()  : bool
PING function to test internet connection.
setClientLog()  : bool
setOfflinePunch()  : bool
startingUpgrade()  : bool
Just a function to log the update start.
convertTimeClockUserIDToUserID()  : bool|string|array<string|int, string>
convertUserIdToTimeClockUserID()  : bool|int
getNextTimeClockUserId()  : bool|int
getUserIdToTimeClockUserIdMap()  : bool
setTimeClockUserIdForUser()  : bool
isLoggedIn()  : bool

Properties

Methods

getBranches()

public getBranches(string $station_id) : array<string|int, mixed>|bool
Parameters
$station_id : string

UUID

Return values
array<string|int, mixed>|bool

getClientConfig()

public getClientConfig(string $station_id) : array<string|int, mixed>
Parameters
$station_id : string

UUID

Return values
array<string|int, mixed>

getDepartments()

public getDepartments(string $station_id) : array<string|int, mixed>|bool
Parameters
$station_id : string

UUID

Return values
array<string|int, mixed>|bool

getJobItems()

public getJobItems(string $station_id) : array<string|int, mixed>|bool
Parameters
$station_id : string

UUID

Return values
array<string|int, mixed>|bool

getJobtoJobItemMap()

public getJobtoJobItemMap(string $station_id) : array<string|int, mixed>|bool
Parameters
$station_id : string

UUID

Return values
array<string|int, mixed>|bool

getJobtoUserMap()

public getJobtoUserMap(string $station_id) : array<string|int, mixed>|bool
Parameters
$station_id : string

UUID

Return values
array<string|int, mixed>|bool

getLatestVersion()

Check for updates each day... And on startup, and allow a menu option to force a check.

public getLatestVersion() : string
Return values
string

getUserIdentifiers()

public getUserIdentifiers(string $station_id) : array<string|int, mixed>|bool
Parameters
$station_id : string

UUID

Return values
array<string|int, mixed>|bool

getUsers()

public getUsers(string $station_id) : array<string|int, mixed>|bool
Parameters
$station_id : string

UUID

Return values
array<string|int, mixed>|bool

isGoodTimeToUpgrade()

Ask server if its a good time to upgrade. That way the server can take load in to account, as well as check the schedule on this station, and make sure people aren't about to punch in!

public isGoodTimeToUpgrade(string $station_id) : int

Return offset in seconds of when to upgrade perhaps? 0 means now, 3600 means in one hour? Or just keep returning false, and cache the data... Returning a new offset is better I think, because that way the 24hr timer can be sync'd to a good time to do the upgrades.

Parameters
$station_id : string

UUID

Return values
int

isLatestData()

public isLatestData(string $station_id, int $last_check_epoch) : array<string|int, mixed>|bool
Parameters
$station_id : string

UUID

$last_check_epoch : int

EPOCH

Return values
array<string|int, mixed>|bool

Login()

public Login( $user_name[, null $password = null ][, null $type = null ]) : bool|null
Parameters
$user_name :
$password : null = null
$type : null = null
Return values
bool|null

startingUpgrade()

Just a function to log the update start.

public startingUpgrade(string $station_id) : bool
Parameters
$station_id : string

UUID

Return values
bool

convertTimeClockUserIDToUserID()

protected convertTimeClockUserIDToUserID(int|array<string|int, int> $timeclock_user_ids[, null $company_obj = null ]) : bool|string|array<string|int, string>
Parameters
$timeclock_user_ids : int|array<string|int, int>
$company_obj : null = null
Return values
bool|string|array<string|int, string>

UUID

convertUserIdToTimeClockUserID()

protected convertUserIdToTimeClockUserID(string $user_id) : bool|int
Parameters
$user_id : string

UUID

Return values
bool|int

getUserIdToTimeClockUserIdMap()

protected getUserIdToTimeClockUserIdMap([null $company_obj = null ]) : bool
Parameters
$company_obj : null = null
Return values
bool

Search results