UNB Components Code Reference

UnbEnvironment class

Environment functions for compatibility with different server environments and to query information about the client (browser).

Public methods

S BestXHtml Gets the client's best supported XHTML MIME type.
S EnableHttpCompression Enables HTTP output compression.
S GetBrowserClass Gets the client's browser class.
S GetBrowserName Gets the client's browser name.
S GetBrowserVersion Gets the client's browser version.
S GetClientLanguage Gets the client's language preferences.
S GetClientSystemClass Gets the client operating system class
S GetClientSystemName Gets the client operating system name and version
S GetReferer Gets the referer URL for this request.
S GetRemoteAddress Gets the client IP address
S GetSearchTerms Gets the search terms found in the referer, e.g. if clicked on a search engine link.
S GetServerSystemType Gets the local server operating system class
S IsBrowser Gets a value indicating whether the client is a real browser.
S IsRefererMyDomain Gets a value indicating whether the referer URL is on the same domain as this page.
S SetupEnvironment Sets up the environment for UNB.
S SetupErrorReporting Configures PHP error reporting.
S SetupMagicQuotesGPC Configures PHP magic quoting for GET/POST/COOKIE variables.
S SetupMagicQuotesRuntime Configures PHP magic quoting at runtime.
S SetupMultibyte Configures PHP multibyte string functions. This is strongly recommended to use to ensure UNB works as expected.
S SetupNull Filters all NUL bytes out of input parameters.
S SetupRegisterGlobals Configures PHP register globals setting.
S UseXml Gets a value indicating whether the best supported XHTML MIME type is XML-based.

Private methods

   Class constructor No description available.
S DeNulArray Removes NUL characters from each array key and value, recursing into sub-arrays.
S DeSlashArray Applies stripslashes() to each array key and value, recursing into sub-arrays.
S DetectBrowser Detects the client browser and caches information about it.

Private fields

browserClass  –  default: null
browserName  –  default: null
browserVersion  –  default: null
isBrowser  –  default: null
searchTerms  –  default: null

Implementation file: environment.class.php, line 11

© 2010 Yves Goergen. UNB Components Homepage. Reference generated on 2010-03-07.