A container to add objects to that will output a fully formed HTML page with no Foundation libraries.
Constants |
Methods |
public __construct() |
public add( $item) : static Add to the body element directly |
public addCSS(string $css) : static Add dedupped inline css |
public addHeadJavaScript(string $js) : static Add dedupped JavaScript to the header |
public addHeadScript(string $module, array $attributes = []) : PHPFUI Add a dedupped header script
|
public addHeadTag(string $tag) : PHPFUI Add a meta tag to the head section of the page |
public addIEComments(string $comment) : PHPFUI Add IE commands. For example you should restrict IE 8 and lower clients.
|
public addJavaScript(string $js) : PHPFUI Add dedupped JavaScript to the page |
public addJavaScriptFirst(string $js) : PHPFUI Add dedupped JavaScript as the first JavaScript before Foundation |
public addJavaScriptLast(string $js) : PHPFUI Add dedupped JavaScript as the last JavaScript on the page |
public addStyleSheet(string $module) : PHPFUI Add dedupped Style Sheet to the page
|
public addTailScript(string $module, array $attributes = []) : PHPFUI Add a dedupped script to the end of the page
|
public getBaseURL() : string Return just the base URI without the query string |
public getBodyElement() : PHPFUI Direct access to the page body element. Also accessed via add method. |
public getFavIcon() : string Return the Fav Icon |
public getPageName() : string Return the current page name |
public getQueryParameters() : array Returns array of the current query parameters |
public getQueryString() : string Returns the query string with leading ? if set |
public getResourcePath(string $resource = '') : string Get fully qualified resource path root relative with resource if passed A $resource starting with / or http is not modified |
public hasDatePicker() : bool return true if it has a built in date picker detectable by HTTP_USER_AGENT |
public hasDateTimePicker() : bool return true if it has a built in date time picker detectable by HTTP_USER_AGENT |
public hasTimePicker() : bool return true if it has a built in time picker detectable by HTTP_USER_AGENT |
public isAndroid() : bool Return true if Android platform |
public isChrome() : bool Return true if Chrome browser |
public isIEMobile() : bool Return true if Windows Mobile browser |
public isIOS() : bool Return true if IOS platform |
public redirect(string $url = '', string $parameters = '', int $timeout = 0) : PHPFUI Redirect page. Default will redirect to the current page minus query string. Pass formatted query string as $parameter with no leading ?.
|
public removeCSS(string $css) : static Remove inline css |
public removeHeadJavaScript(string $js) : static Remove JavaScript from the header |
public removeHeadScript(string $module) : PHPFUI Remove header script
|
public removeHeadTag(string $tag) : PHPFUI Remove a meta tag from the head section of the page |
public removeIEComments(string $comment) : PHPFUI Remove IE commands. |
public removeJavaScript(string $js) : PHPFUI Remove JavaScript from the page |
public removeJavaScriptFirst(string $js) : PHPFUI Remove JavaScript from the first JavaScript before Foundation |
public removeJavaScriptLast(string $js) : PHPFUI Remove JavaScript from the last JavaScript on the page |
public removeStyleSheet(string $module) : PHPFUI Remove a Style Sheet from the page
|
public removeTailScript(string $module) : PHPFUI Remove script from the end of the page
|
public setFavIcon(string $path) : PHPFUI Sets the Fav Icon (shown in browser tabs and elsewhere in the browser)
|
public setLanguage(string $lang) : PHPFUI Set the page language |
public setPageName(string $name) : PHPFUI Set the page name. Defaults to "Created with Foundation"
|
public setResourcePath(string $resourcePath = '/') : PHPFUI $resoursePath should start from the public root directory and include a trailing forward slash |
Methods |
protected getBody() : string |
protected getEnd() : string |
protected getStart() : string |
Properties |
private bool $android = false |
private PHPFUI |
private bool $chrome = false |
private array $css = []
|
private int $edgeVersion = 0 |
private string $favIcon = '' |
private int $fireFoxVersion = 0 |
private array $headJavascript = []
|
private array $headScripts = []
|
private array $headTags = []
|
private array $ieComments = []
|
private bool $IEMobile = false |
private bool $ios = false |
private array $javascript = []
|
private array $javascriptFirst = []
|
private array $javascriptLast = []
|
private string $language = 'en' |
private string $pageName = '' |
private string $resourcePath = '/' |
private array $scriptAttributes = []
|
private array $styleSheets = []
|
private array $tailScripts = []
|
Methods |
private getAttributes(array $attributes) : string
|
Methods |