| Methods |
public
|
route()
Advance Function, Internal use
Advance Function, Internal use
|
#
|
public
|
getCurrentRequest(): string
Get Current Request Gate
|
#
|
public
|
isRegisterCurrentRequest(): boolean
Check if any Gate registered with current request
Check if any Gate registered with current request
|
#
|
public
|
registerCurrentRequest(string $gate_dir_path, string $s_namespace = "", string $permtitle = "", array $permlist = null)
Register Current Request with Gate
Register Current Request with Gate
Parameters
| $gate_dir_path |
Gate file path like Gates/index.Gate
|
| $s_namespace |
Optional Namespace if any
|
| $permtitle |
Title Display in Permission List
|
| $permlist |
Create Permissions List for Gate
|
|
#
|
public
|
registerCurrentGate(string $gate)
Register Current Request with different App Gate
Register Current Request with different App Gate
Parameters
| $gate |
registerCurrentGate('home')
|
|
#
|
public
|
isRootURI()
|
#
|
public
|
getCurrentGatePath(): array
Get Registered Gate Path details of Current Request
Get Registered Gate Path details of Current Request
|
#
|
public
|
getGatePath($gatea2): array
Get Registered Gate Path details
Get Registered Gate Path details
|
#
|
public
|
getGateURL(
string $gate_param,
string $extra = "",
string $newbasePath = "",
boolean $blnSesID = false,
string $ext = '',
boolean $noncache = false,
): string
Generate URL for a Gate
Parameters
| $gate_param |
Gate like index
|
| $extra |
Extra query string in URL
$extra = 'test=1&mpid=13'
|
| $newbasePath |
new domain url
$newbasePath = 'https://domain.com/test
|
| $blnSesID |
Add session id default false
|
| $ext |
change url file extension as Gate default empty and use html or set in comp file.
|
| $noncache |
default false, if true, cache can not save this url in browser or in proxy
|
|
#
|
public
|
getThisGateURL(string $extra = "", boolean $blnSesID = false, string $ext = '', boolean $noncache = false): string
Generate URL for Current Gate
Generate URL for Current Gate
Parameters
| $extra |
Extra query string in URL
$extra = 'test=1&mpid=13'
|
| $blnSesID |
Add session id default false
|
| $ext |
change url file extension as Gate default empty and use html or set in comp file.
|
| $noncache |
default false, if true, cache can not save this url in browser or in proxy
|
|
#
|
public
|
getEventURLSecure(
string $eventName,
string $evtp = "",
string $gate_param = "",
string $extra = "",
string $newbasePath = "",
boolean $blnSesID = false,
string $ext = '',
boolean $noncache = false,
): string
Generate Secure Event URL for a Event Parameter of Gate.
If you try tamper the URL Event Parameter then it gives empty…
Generate Secure Event URL for a Event Parameter of Gate.
If you try tamper the URL Event Parameter then it gives empty event parameter value. If you need
to pass other value also secure then you need to manually secure with function
val2Secure function and restore back with secure2Val function. By default event parameter
automatically convert by SartajPHP.
Parameters
| $eventName |
Name of Event
class index extends Sphp\tools\BasicGate{
public function page_event_test($evtp){
|
| $evtp |
Event Parameter pass to URL
|
| $gate_param |
Gate like index
|
| $extra |
Extra query string in URL
$extra = 'test=1&mpid=13'
|
| $newbasePath |
new domain url
$newbasePath = 'https://domain.com/test
|
| $blnSesID |
Add session id default false, url expired with session (Gate can allow expired url)
|
| $ext |
change url file extension as Gate default empty and use html or set in comp file.
|
| $noncache |
default false, if true, cache can not save this url in browser or in proxy
|
|
#
|
public
|
getEventURL(
string $eventName,
string $evtp = "",
string $gate_param = "",
string $extra = "",
string $newbasePath = "",
boolean $blnSesID = false,
string $ext = '',
boolean $noncache = false,
): string
Generate URL for a Event of Gate
Generate URL for a Event of Gate
Parameters
| $eventName |
Name of Event
class index extends Sphp\tools\BasicGate{
public function page_event_test($evtp){
|
| $evtp |
Event Parameter pass to URL
|
| $gate_param |
Gate like index
|
| $extra |
Extra query string in URL
$extra = 'test=1&mpid=13'
|
| $newbasePath |
new domain url
$newbasePath = 'https://domain.com/test
|
| $blnSesID |
Add session id default false, url expired with session (Gate can allow expired url)
|
| $ext |
change url file extension as Gate default empty and use html or set in comp file.
|
| $noncache |
default false, if true, cache can not save this url in browser or in proxy
|
|
#
|
public
|
setEventName(string $evt, string $evtp = "")
Advance Function, Internal use
Advance Function, Internal use
|
#
|