TimeTrexSoapClient
in package
Table of Contents
- $soap_client_obj : mixed
- __construct() : mixed
- TimeTrexSoapClient constructor.
- convertDocument() : null
- getCurrencyExchangeRates() : array<string|int, mixed>|bool
- getCurrencyExchangeRatesByDate() : bool|array<string|int, mixed>
- getGeoCodeByAddress() : null
- getGeoIPData() : null
- getLocalRegistrationKey() : bool
- getPrimaryCompanyData() : array<string|int, mixed>|bool
- getRegistrationKey() : mixed
- getSoapObject() : null|TTSoapClient
- getUpgradeFileURL() : bool
- isLatestVersion() : bool
- isNewVersionReadyForUpgrade() : bool
- isUpdateNotifyEnabled() : bool
- isValidRegistrationKey() : bool
- parseResume() : null
- ping() : mixed
- printSoapDebug() : mixed
- saveRegistrationKey() : bool
- sendCompanyData() : bool
- sendCompanyUserCountData() : bool
- sendCompanyUserLocationData() : bool
- sendCompanyVersionData() : bool
- sendEmail() : bool
- sendNotification() : bool
- sendUserFeedback() : null
- syncNotifications() : mixed
- validateEmail() : bool
Properties
$soap_client_obj
public
mixed
$soap_client_obj
= \null
Methods
__construct()
TimeTrexSoapClient constructor.
public
__construct() : mixed
Return values
mixed —convertDocument()
public
convertDocument( $data[, string $format = 'pdf' ]) : null
Parameters
Return values
null —getCurrencyExchangeRates()
public
getCurrencyExchangeRates(string $company_id, $currency_arr, $base_currency) : array<string|int, mixed>|bool
Parameters
Return values
array<string|int, mixed>|bool —getCurrencyExchangeRatesByDate()
public
getCurrencyExchangeRatesByDate(string $company_id, $currency_arr, $base_currency[, int $start_date = null ][, int $end_date = null ]) : bool|array<string|int, mixed>
Parameters
- $company_id : string
-
UUID
- $currency_arr :
- $base_currency :
- $start_date : int = null
-
EPOCH
- $end_date : int = null
-
EPOCH
Return values
bool|array<string|int, mixed> —getGeoCodeByAddress()
public
getGeoCodeByAddress( $address1, $address2, $city, $province, $country, $postal_code) : null
Parameters
Return values
null —getGeoIPData()
public
getGeoIPData( $ip_address) : null
Parameters
Return values
null —getLocalRegistrationKey()
public
getLocalRegistrationKey() : bool
Return values
bool —getPrimaryCompanyData()
public
getPrimaryCompanyData() : array<string|int, mixed>|bool
Return values
array<string|int, mixed>|bool —getRegistrationKey()
public
getRegistrationKey() : mixed
Return values
mixed —getSoapObject()
public
getSoapObject() : null|TTSoapClient
Return values
null|TTSoapClient —getUpgradeFileURL()
public
getUpgradeFileURL([bool $force = false ]) : bool
Parameters
- $force : bool = false
Return values
bool —isLatestVersion()
public
isLatestVersion(string $company_id) : bool
Parameters
- $company_id : string
-
UUID
Return values
bool —isNewVersionReadyForUpgrade()
public
isNewVersionReadyForUpgrade([bool $force = false ]) : bool
Parameters
- $force : bool = false
Return values
bool —isUpdateNotifyEnabled()
public
isUpdateNotifyEnabled() : bool
Return values
bool —isValidRegistrationKey()
public
isValidRegistrationKey( $key) : bool
Parameters
Return values
bool —parseResume()
public
parseResume( $resume_data, $file_name) : null
Parameters
Return values
null —ping()
public
ping([mixed $ping_key = null ]) : mixed
Parameters
- $ping_key : mixed = null
Return values
mixed —printSoapDebug()
public
printSoapDebug() : mixed
Return values
mixed —saveRegistrationKey()
public
saveRegistrationKey() : bool
Return values
bool —sendCompanyData()
public
sendCompanyData(string $company_id[, bool $force = false ]) : bool
Parameters
- $company_id : string
-
UUID
- $force : bool = false
Return values
bool —sendCompanyUserCountData()
public
sendCompanyUserCountData(string $company_id) : bool
Parameters
- $company_id : string
-
UUID
Return values
bool —sendCompanyUserLocationData()
public
sendCompanyUserLocationData(string $company_id) : bool
Parameters
- $company_id : string
-
UUID
Return values
bool —sendCompanyVersionData()
public
sendCompanyVersionData(string $company_id) : bool
Parameters
- $company_id : string
-
UUID
Return values
bool —sendEmail()
public
sendEmail( $to, $headers, $body) : bool
Parameters
Return values
bool —sendNotification()
public
sendNotification( $device_tokens, $title, $body[, null $payload_data = null ], int $ttl[, string $priority = 'normal' ][, bool $force = false ]) : bool
Parameters
- $device_tokens :
- $title :
- $body :
- $payload_data : null = null
- $ttl : int
- $priority : string = 'normal'
- $force : bool = false
Return values
bool —sendUserFeedback()
public
sendUserFeedback( $rating, $message, object $u_obj) : null
Parameters
Return values
null —syncNotifications()
public
syncNotifications(mixed $last_check_epoch[, mixed $force = false ]) : mixed
Parameters
- $last_check_epoch : mixed
- $force : mixed = false
Return values
mixed —validateEmail()
public
validateEmail( $email) : bool