Ferreteria/v0.5/@cls/cKiosk admin

From Woozle Writes Code
< Ferreteria‎ | v0.5‎ | @cls
Revision as of 21:32, 17 October 2022 by Woozle (talk | contribs)
Jump to navigation Jump to search
class menu\cKiosk_admin
  • namespace: menu
  • source: menu/kiosk.php
  • purpose: a cKiosk that has to do its own figuring to separate out the path data from the full URL

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

History

  • 2019-06-16 making SetPath() protected, because we seem to be getting in trouble by stacking and re-stacking paths on the same object; need to prevent that.