Copied!

Basis Page interface

Abstract Interface
Methods
public abstract addCSS ( string $css ) : self
 

Add dedupped inline css

public abstract addHeadJavaScript ( string $js ) : self
 

Add dedupped JavaScript to the header

public abstract addHeadScript ( string $module ) : self
 

Add a dedupped header script

public abstract addHeadTag ( string $tag ) : self
 

Add a meta tag to the head section of the page

public abstract addIEComments ( string $comment ) : self
 

Add IE commands. For example you should restrict IE 8 and lower clients.

$page->addIEComments('<!--[if lt IE9]><script>window.location="/old/index.html";</script><![endif]-->');
public abstract addJavaScript ( string $js ) : self
 

Add dedupped JavaScript to the page

public abstract addJavaScriptFirst ( string $js ) : self
 

Add dedupped JavaScript as the first JavaScript before Foundation

public abstract addJavaScriptLast ( string $js ) : self
 

Add dedupped JavaScript as the last JavaScript on the page

public abstract addStyleSheet ( string $module ) : self
 

Add dedupped Style Sheet to the page

public abstract addTailScript ( string $module ) : self
 

Add a dedupped script to the end of the page

public abstract getBaseURL () : string
 

Return just the base URI without the query string

public abstract getFavIcon () : string
 

Return the Fav Icon

public abstract getPageName () : string
 

Return the current page name

public abstract getQueryParameters () : array
 

Returns array of the current query parameters

public abstract 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 abstract hasDatePicker () : bool
 

return true if it has a built in date picker detectable by HTTP_USER_AGENT

public abstract hasDateTimePicker () : bool
 

return true if it has a built in date time picker detectable by HTTP_USER_AGENT

public abstract hasTimePicker () : bool
 

return true if it has a built in time picker detectable by HTTP_USER_AGENT

public abstract isAndroid () : bool
 

Return true if Android platform

public abstract isChrome () : bool
 

Return true if Chrome browser

public abstract isIEMobile () : bool
 

Return true if Windows Mobile browser

public abstract isIOS () : bool
 

Return true if IOS platform

public abstract redirect ( string $url = '' , string $parameters = '' , int $timeout = 0 ) : self
 

Redirect page. Default will redirect to the current page
minus query string. Pass formatted query string as
$parameter with no leading ?.

public abstract setFavIcon ( string $path ) : self
 

Sets the Fav Icon (shown in browser tabs and elsewhere in the
browser)

public abstract setLanguage ( string $lang ) : self
 

Set the page language

public abstract setPageName ( string $name ) : self
 

Set the page name. Defaults to "Created with Foundation"

public abstract setResourcePath ( string $resoursePath = '/' ) : self
 

$resoursePath should start from the public root directory and include a trailing forward slash

© 2020 Bruce Wells
Search Namespaces \ Classes
Configuration Numbers (0-9.) only