Basic Page 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.
|
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 isDone() : bool Returns true if the page needs no more processing |
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 setRawResponse(string $response, bool $asJSON = true) : static Sets the page response directly |
public abstract setResourcePath(string $resoursePath = '/') : self $resoursePath should start from the public root directory and include a trailing forward slash |
public abstract setResponse(string $response, string $color = 'lime') : static Set a response in the standard format ('reponse' and 'color' array)
|