-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates user agent detection in client library.
- Loading branch information
JB Lebrun
committed
Oct 19, 2018
1 parent
316da90
commit 222e83a
Showing
9 changed files
with
147 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
/** | ||
* @brief HomTom client devices specific methods | ||
* @details Engine / Tool Library | ||
* @file engine/lib/tool/clientDevices/HomTom.php.inc | ||
* @author CaMykS Team <camyks.contact@gmail.com> | ||
* @version 1.0 | ||
* @date Creation: Oct 2018 | ||
* @date Modification: Oct 2018 | ||
* @copyright 2018 CaMykS Team | ||
* @note This program is distributed as is - WITHOUT ANY WARRANTY; | ||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* @warning This library is not loaded with CaMykS initialisation. | ||
*/ | ||
|
||
/** | ||
* Return HomTom client device information from a known list. | ||
* @param mixed $deviceCode | ||
* @return array | ||
*/ | ||
function get_HomTomClientDevice($deviceCode='') { | ||
$deviceList = array( | ||
'HT50' => array('platform_year' => 2017), | ||
); | ||
|
||
/* Check for returning list */ | ||
if ($deviceCode === false) | ||
return $deviceList; | ||
|
||
/* Initialise result. */ | ||
$result = array( | ||
'platform_company' => 'HomTom', | ||
'platform_model' => $deviceCode, | ||
'platform_type' => 'handheld', | ||
'platform_format' => 'handheld', | ||
); | ||
|
||
/* Check if device is a known device. */ | ||
if (!array_key_exists($deviceCode, $deviceList)) | ||
return $result; | ||
|
||
/* Return result. */ | ||
return array_merge($result, $deviceList[$deviceCode]); | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
/** | ||
* @brief Konrow client devices specific methods | ||
* @details Engine / Tool Library | ||
* @file engine/lib/tool/clientDevices/Konrow.php.inc | ||
* @author CaMykS Team <camyks.contact@gmail.com> | ||
* @version 1.0 | ||
* @date Creation: Oct 2018 | ||
* @date Modification: Oct 2018 | ||
* @copyright 2018 CaMykS Team | ||
* @note This program is distributed as is - WITHOUT ANY WARRANTY; | ||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* @warning This library is not loaded with CaMykS initialisation. | ||
*/ | ||
|
||
/** | ||
* Return Konrow client device information from a known list. | ||
* @param mixed $deviceCode | ||
* @return array | ||
*/ | ||
function get_KonrowClientDevice($deviceCode='') { | ||
$deviceList = array( | ||
'BIGCOOL' => array('platform_model' => 'BigCool', 'platform_year' => 2016), | ||
); | ||
|
||
/* Check for returning list */ | ||
if ($deviceCode === false) | ||
return $deviceList; | ||
|
||
/* Initialise result. */ | ||
$result = array( | ||
'platform_company' => 'Konrow', | ||
'platform_model' => $deviceCode, | ||
'platform_type' => 'handheld', | ||
'platform_format' => 'handheld', | ||
); | ||
|
||
/* Check if device is a known device. */ | ||
if (!array_key_exists($deviceCode, $deviceList)) | ||
return $result; | ||
|
||
/* Return result. */ | ||
return array_merge($result, $deviceList[$deviceCode]); | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters