Skip to content

Commit 67105c5

Browse files
author
Sebastian Buckpesch
committed
Add three public functions:
- getStartDate - getExpiryDate - getUserLimit
1 parent d6dd6e6 commit 67105c5

File tree

5 files changed

+1489
-1392
lines changed

5 files changed

+1489
-1392
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,15 @@ Attach one of these parameters to the url to modify the PHP SDK behaviour
8686
| getDevice() | Returns user device information | | array |
8787
| getDeviceType() | Returns the device type of the current device mobile, tablet, desktop | | string |
8888
| getEnvironment() | Returns if the app currently running on a website, facebook or direct website means the app is embedded via iframe to a website facebook means the app is embedded in a facebook page tab direct means the app is being accessed directly without iframe embed | | string |
89+
| getExpirationDate() | Returns a Datetime object, containing the date, the app license expires | | DateTime |
8990
| getFacebook() | Returns all available Facebook information, like currently used fanpage and canvas information. | | |
9091
| getLang() | Returns the currently used Language as Language Code (e.g. de_DE, en_US, ...) | | string |
9192
| getParams() | Returns all params submitted to the SmartLink before redirection | | array |
9293
| getOperatingSystem() | Returns the operating system of the current user | | string |
94+
| getStartDate() | Returns a Datetime object, containing the date, the app should be publicly accessible | | DateTime |
9395
| getUrl() | Returns the SmartLink Url for Sharing | | string |
9496
| getUrlLong() | Returns the SmartLink Url without Url Shortener | `bool` $shorten Shorten URL using smartl.ink | string |
97+
| getUserLimit() | Returns the number of users exportable for an app | | int |
9598
| renderSharePage ($debug = false) | Renders the complete HTML of the Share page including all meta tags and redirection. | `bool` $debug - Show debug information on the page? | string |
9699
| setBaseUrl($base_url) | Sets a new base url for your sharing links (->getUrl()). | `string` $base_url New base url | void |
97100
| setFilename($filename) | Sets the filename for the SmartLink (default: smartlink.php) | `string` $filename | void |

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"require": {
2626
"ext-curl": "*",
2727
"ext-gd": "*",
28-
"leafo/scssphp": "^v0.7.5",
28+
"leafo/scssphp": "^v0.7.7",
2929
"mobiledetect/mobiledetectlib": "^2.8.12",
3030
"mustache/mustache": "v2.8.0",
3131
"oyejorge/less.php": "^1.7",

0 commit comments

Comments
 (0)