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
$user_id_to_timeclock_user_id_map
protected
mixed
$user_id_to_timeclock_user_id_map
= \false
Methods
__call()
public
__call( $name, $arguments) : bool
Parameters
Return values
bool —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> —getClientVersion()
public
getClientVersion() : bool
Return values
bool —getCompanyObject()
public
getCompanyObject() : bool|object
Return values
bool|object —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 —getJobs()
public
getJobs(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 —getLatestVersionMD5()
public
getLatestVersionMD5() : string
Return values
string —getLatestVersionURL()
public
getLatestVersionURL() : string
Return values
string —getOtherFields()
public
getOtherFields(string $station_id) : bool
Parameters
- $station_id : string
-
UUID
Return values
bool —getStationObject()
public
getStationObject([null $station_id = null ]) : bool|object
Parameters
- $station_id : null = null
Return values
bool|object —getTime()
public
getTime() : int
Return values
int —getTimeOffset()
public
getTimeOffset(int $client_epoch) : int
Parameters
- $client_epoch : int
-
EPOCH
Return values
int —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 —isLatestVersion()
public
isLatestVersion( $current_version) : bool
Parameters
Return values
bool —Login()
public
Login( $user_name[, null $password = null ][, null $type = null ]) : bool|null
Parameters
Return values
bool|null —ping()
PING function to test internet connection.
public
ping() : bool
Return values
bool —setClientLog()
public
setClientLog( $data) : bool
Parameters
Return values
bool —setOfflinePunch()
public
setOfflinePunch( $data) : bool
Parameters
Return values
bool —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 —getNextTimeClockUserId()
protected
getNextTimeClockUserId() : bool|int
Return values
bool|int —getUserIdToTimeClockUserIdMap()
protected
getUserIdToTimeClockUserIdMap([null $company_obj = null ]) : bool
Parameters
- $company_obj : null = null
Return values
bool —setTimeClockUserIdForUser()
protected
setTimeClockUserIdForUser(string $user_id) : bool
Parameters
- $user_id : string
-
UUID
Return values
bool —isLoggedIn()
private
isLoggedIn() : bool