Ferreteria/v0.5/@cls/cKiosk: Difference between revisions
< Ferreteria | v0.5 | @cls
Jump to navigation
Jump to search
No edit summary |
(moved cKiosk_admin method-usage to page for that class) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{fmt/title|class <code>menu\cKiosk</code>}} | {{fmt/title|class <code>menu\cKiosk</code>}} | ||
* '''namespace''': {{l/same|menu}} | * '''namespace''': {{l/same|menu}} | ||
* '''source''': {{l/ferreteria/code|menu/kiosk.php}} | |||
==Methods== | ==Methods== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
Line 27: | Line 28: | ||
==Usage== | ==Usage== | ||
* {{l/ver/class|cDropIndex}}::RegisterMenuBits() ({{l/ferreteria/code|base/dropin.php}}) calls <code>GetAbsolutePath(TRUE)</code> | * {{l/ver/class|cDropIndex}}::RegisterMenuBits() ({{l/ferreteria/code|base/dropin.php}}) calls <code>GetAbsolutePath(TRUE)</code> | ||
* {{l/ver/class|caPageContent}}::RedirectToDefaultPage() ({{l/ferreteria/code|layout/page/content.php}}) calls <code>GetAbsolutePath(TRUE)</code> | * {{l/ver/class|caPageContent}}::RedirectToDefaultPage() ({{l/ferreteria/code|layout/page/content.php}}) calls <code>GetAbsolutePath(TRUE)</code> | ||
* {{l/ver/class|caWidget}} | * {{l/ver/class|caWidget}} | ||
** ::RedirectAfterLogin() calls <code>MakeURLFromString($uri)</code> | ** ::RedirectAfterLogin() calls <code>MakeURLFromString($uri)</code> | ||
** multiple calls to <code>GetAbsolutePath(TRUE)</code> | ** multiple calls to <code>GetAbsolutePath(TRUE)</code> | ||
* | ** Also calls one method that's only in {{l/ver/class|cKiosk_admin}}. | ||
* {{l/ver/class|taForObject}}::LinkURL() calls <code>GetAbsolutePath(TRUE)</code> | * {{l/ver/class|taForObject}}::LinkURL() calls <code>GetAbsolutePath(TRUE)</code> | ||
Latest revision as of 00:05, 18 October 2022
class
menu\cKiosk |
- namespace: menu
- source: menu/kiosk.php
Methods
access | function name | code (if short) | purpose |
---|---|---|---|
public | __construct(string $wp) | { $this->SetPath($wp); } | |
protected | SetPath(string $wp) | { $this->wp = ltrim($wp,'/'); } | make it a relative path |
public | GetAbsolutePath($doEndSlash) : string | ||
public | GetRelativePath(bool $doEndSlash) : string | ||
public | MakeURLFromString(string $sPath) : string | RETURNS: The full URL for the given input string
| |
public | GetInputString(bool $doEndSlash) : string | RETURNS: The string from which all input arguments may be parsed
| |
public | DumpFull() : string |
Usage
- cDropIndex::RegisterMenuBits() (base/dropin.php) calls
GetAbsolutePath(TRUE)
- caPageContent::RedirectToDefaultPage() (layout/page/content.php) calls
GetAbsolutePath(TRUE)
- caWidget
- ::RedirectAfterLogin() calls
MakeURLFromString($uri)
- multiple calls to
GetAbsolutePath(TRUE)
- Also calls one method that's only in cKiosk_admin.
- ::RedirectAfterLogin() calls
- taForObject::LinkURL() calls
GetAbsolutePath(TRUE)
access methods
These are global ways of accessing the active Kiosk object:
- caAppUser::GetKioskObject() is supposed to be the canonical method to bring up a singleton object of the app-appropriate class.
- caDynamicLink::GetAppKiosk() is an alias to
F\caApp::Me()->GetKioskObject()