public function MiniorangeSAMLCustomer::getTimeStamp in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7
1 call to MiniorangeSAMLCustomer::getTimeStamp()
- MiniorangeSAMLCustomer::getHeader in includes/
customer_setup.php
File
- includes/
customer_setup.php, line 162 - Contains miniOrange Customer class.
Class
- MiniorangeSAMLCustomer
- @file This class represents configuration for customer.
Code
public function getTimeStamp() {
$url = MiniorangeSAMLConstants::BASE_URL . '/moas/rest/mobile/get-timestamp';
$fields = array();
$currentTimeInMillis = $this
->callService($url, $fields);
if (empty($currentTimeInMillis)) {
$currentTimeInMillis = round(microtime(true) * 1000);
$currentTimeInMillis = number_format($currentTimeInMillis, 0, '', '');
}
return $currentTimeInMillis;
}