UNB Components Code Reference

UnbEnvironment::IsClientPlatform method

Determines whether the client platform matches the specified selector.

public static function UnbEnvironment::IsClientPlatform ($selector);

Parameters

selector

Remarks

The selector is matched for browser and OS separately. Only the specified parts are regarded. Each component is matched from the beginning of the client's browser/OS. Only complete string parts are matched, ie "web" does not match "webkit/chrome/5.0" but "webkit" and "*/chrome" do. All matching is done case-insensitive. To match the OS only, leave out the browser and start the selector with the @ character.

Member of class: UnbEnvironment

Implementation file: environment.class.php, line 676

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-06.