Methods |
public
|
route()
Advance Function, Internal use
Advance Function, Internal use
|
#
|
public
|
getCurrentRequest(): string
Get Current Request Controller
Get Current Request Controller
|
#
|
public
|
isRegisterCurrentRequest(): boolean
Check if any application registered with current request
Check if any application registered with current request
|
#
|
public
|
registerCurrentRequest(string $apppath, string $s_namespace = "", string $permtitle = "", array $permlist = null)
Register Current Request with Application
Register Current Request with Application
Parameters
$apppath |
Application file path like apps/index.app
|
$s_namespace |
Optional Namespace if any
|
$permtitle |
Title Display in Permission List
|
$permlist |
Create Permissions List for application
|
|
#
|
public
|
registerCurrentController(string $ctrl)
Register Current Request with different Controller
Register Current Request with different Controller
Parameters
$ctrl |
registerCurrentController('home')
|
|
#
|
public
|
isRootURI()
|
#
|
public
|
getCurrentAppPath(): array
Get Registered Application FilePath details of Current Request
Get Registered Application FilePath details of Current Request
|
#
|
public
|
getAppPath($ctrla2): array
Get Registered Application FilePath details
Get Registered Application FilePath details
|
#
|
public
|
getAppURL(string $ControllerName, string $extra = "", string $newbasePath = "", boolean $blnSesID = false): string
Generate URL for a Controller
Generate URL for a Controller
Parameters
$ControllerName |
controller 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
|
|
#
|
public
|
getthisURL(string $extra = "", boolean $blnSesID = false): string
Generate URL for Current Application
Generate URL for Current Application
Parameters
$extra |
Extra query string in URL
$extra = 'test=1&mpid=13'
|
$blnSesID |
Add session id default false
|
|
#
|
public
|
getEventURL(
string $eventName,
string $evtp = "",
string $ControllerName = "",
string $extra = "",
string $newbasePath = "",
boolean $blnSesID = false,
): string
Generate URL for a Event of Application
Generate URL for a Event of Application
Parameters
$eventName |
Name of Event
class index extends Sphp\tools\BasicApp{
public function page_event_test($evtp){
|
$evtp |
Event Parameter pass to URL
|
$ControllerName |
controller 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
|
|
#
|
public
|
setEventName(string $evt, string $evtp = "")
Advance Function, Internal use
Advance Function, Internal use
|
#
|