![]() |
![]()
| ![]() |
![]()
NAMEMobile::UserAgentFactory - Instantiates and caches Mobile::UserAgent objects. SYNOPSISuse Mobile::UserAgentFactory; my $factory = Mobile::UserAgentFactory->instance(); # Get Mobile::UserAgent object using a useragent string (preferred): my $mua = $factory->getMobileUserAgent($ENV{'HTTP_USER_AGENT'}); # Get Mobile::UserAgent object by letting the factory look for the useragent in # the HTTP_* environment variables. my $mua = $factory->getMobileUserAgent(); if (defined($mua) && $mua->success()) { printf("Vendor: %s\nModel: %s\n", $mua->vendor(), $mua->model()); } DESCRIPTIONFactory class for the instantiating and caching of Mobile::UserAgent objects. Caching occurs in this class itself. CONSTRUCTOR
PUBLIC OBJECT METHODSThe public object methods available are:
SEE ALSOMobile::UserAgent. COPYRIGHTCopyright (C) 2005 Craig Manley. All rights reserved. You may not redistribute, sell, modify, copy, claim ownership of, nor incorporate this software into any other software without the prior written permission of the author. This software may only be used in applications developed by the author. AUTHORCraig Manley
|