Mobile::Wurfl 1.06
Sponsored Links
Mobile::Wurfl 1.06 Ranking & Summary
File size:
0.10 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
971
Date added:
2007-03-22
Publisher:
Ave Wrigley
Mobile::Wurfl 1.06 description
Mobile::Wurfl is a Perl module interface to WURFL (the Wireless Universal Resource File.
SYNOPSIS
my $wurfl = Mobile::Wurfl->new(
wurfl_home => "/path/to/wurfl/home",
db_descriptor => "DBI:mysql:database=wurfl:host=localhost",
db_username => wurfl,
db_password => wurfl,
wurfl_url => q{http://wurfl.sourceforge.net/wurfl.xml}
);
my $dbh = DBI->connect( $db_descriptor, $db_username, $db_password );
my $wurfl = Mobile::Wurfl->new( dbh => $dbh );
my $desc = $wurfl->get( db_descriptor );
$wurfl->set( wurfl_home => "/another/path" );
$wurfl->create_tables( $sql );
$wurfl->update();
$wurfl->get_wurfl();
$wurfl->rebuild_tables();
my @devices = $wurfl->devices();
for my $device ( @devices )
{
print "$device->{user_agent} : $device->{id}n";
}
my @groups = $wurfl->groups();
my @capabilities = $wurfl->capabilities();
for my $group ( @groups )
{
@capabilities = $wurfl->capabilities( $group );
}
my $ua = $wurfl->canonical_ua( "SonyEricssonK750i/R1J Browser/SEMC-Browser/4.2 Profile/MIDP-2.0 Configuration/CLDC-1.1" );
my $deviceid = $wurfl->deviceid( $ua );
my $wml_1_3 = $wurfl->lookup( $ua, "wml_1_3" );
print "$wml_1_3->{name} = $wml_1_3->{value} : in $wml_1_3->{group}n";
my $fell_back_to = wml_1_3->{deviceid};
my $width = $wurfl->lookup_value( $ua, "max_image_height", no_fall_back => 1 );
$wurfl->cleanup();
Mobile::Wurfl is a perl module that provides an interface to mobile device information represented in wurfl (http://wurfl.sourceforge.net/). The Mobile::Wurfl module works by saving this device information in a database (preferably mysql).
It offers an interface to create the relevant database tables from a SQL file containing "CREATE TABLE" statements (a sample is provided with the distribution). It also provides a method for updating the data in the database from the wurfl.xml file hosted at http://www.nusho.it/wurfl/dl.php?t=d&f=wurfl.xml.
It provides methods to query the database for lists of capabilities, and groups of capabilities. It also provides a method for generating a "canonical" user agent string (see "canonical_ua").
Finally, it provides a method for looking up values for particular capability / user agent combinations. By default, this makes use of the hierarchical "fallback" structure of wurfl to lookup capabilities fallback devices if these capabilities are not defined for the requested device.
SYNOPSIS
my $wurfl = Mobile::Wurfl->new(
wurfl_home => "/path/to/wurfl/home",
db_descriptor => "DBI:mysql:database=wurfl:host=localhost",
db_username => wurfl,
db_password => wurfl,
wurfl_url => q{http://wurfl.sourceforge.net/wurfl.xml}
);
my $dbh = DBI->connect( $db_descriptor, $db_username, $db_password );
my $wurfl = Mobile::Wurfl->new( dbh => $dbh );
my $desc = $wurfl->get( db_descriptor );
$wurfl->set( wurfl_home => "/another/path" );
$wurfl->create_tables( $sql );
$wurfl->update();
$wurfl->get_wurfl();
$wurfl->rebuild_tables();
my @devices = $wurfl->devices();
for my $device ( @devices )
{
print "$device->{user_agent} : $device->{id}n";
}
my @groups = $wurfl->groups();
my @capabilities = $wurfl->capabilities();
for my $group ( @groups )
{
@capabilities = $wurfl->capabilities( $group );
}
my $ua = $wurfl->canonical_ua( "SonyEricssonK750i/R1J Browser/SEMC-Browser/4.2 Profile/MIDP-2.0 Configuration/CLDC-1.1" );
my $deviceid = $wurfl->deviceid( $ua );
my $wml_1_3 = $wurfl->lookup( $ua, "wml_1_3" );
print "$wml_1_3->{name} = $wml_1_3->{value} : in $wml_1_3->{group}n";
my $fell_back_to = wml_1_3->{deviceid};
my $width = $wurfl->lookup_value( $ua, "max_image_height", no_fall_back => 1 );
$wurfl->cleanup();
Mobile::Wurfl is a perl module that provides an interface to mobile device information represented in wurfl (http://wurfl.sourceforge.net/). The Mobile::Wurfl module works by saving this device information in a database (preferably mysql).
It offers an interface to create the relevant database tables from a SQL file containing "CREATE TABLE" statements (a sample is provided with the distribution). It also provides a method for updating the data in the database from the wurfl.xml file hosted at http://www.nusho.it/wurfl/dl.php?t=d&f=wurfl.xml.
It provides methods to query the database for lists of capabilities, and groups of capabilities. It also provides a method for generating a "canonical" user agent string (see "canonical_ua").
Finally, it provides a method for looking up values for particular capability / user agent combinations. By default, this makes use of the hierarchical "fallback" structure of wurfl to lookup capabilities fallback devices if these capabilities are not defined for the requested device.
Mobile::Wurfl 1.06 Screenshot
Mobile::Wurfl 1.06 Keywords
Wireless Universal Resource File
WURFL
Wurfl 1.06
File
interface to
Perl module
Resource file
module interface
capabilities
1
db
ua
interface
wml
Mobile::Wurfl
MobileWurfl
Bookmark Mobile::Wurfl 1.06
Mobile::Wurfl 1.06 Copyright
WareSeeker periodically updates pricing and software information of Mobile::Wurfl 1.06 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Mobile::Wurfl 1.06 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
touch interface
capabilities computer
perl modules
capabilities of computer
capabilities statement
computer capabilities
install perl module
capabilities of a computer
pedigree resource file
psp capabilities
capabilities approach
installing perl module
resource files
iranian military capabilities
networking capabilities
capabilities brochure
computer capabilities and limitations
ps3 capabilities
Related Software
Tera-WURFL project is a PHP class that can identify the capabilities of mobile devices using the standardized WURFL. Free Download
B::Keywords is a Perl module that contains lists of reserved barewords and symbol names. Free Download
Oracle::Trace is a Perl Module for parsing Oracle Trace files. Free Download
Convert::UUlib is a Perl interface to the uulib library (a.k.a. uudeview/uuenview). Free Download
DBIx::Frame is a Perl module for creating and maintaining DBI frameworks. Free Download
File::Find::Closures is a Perl module with functions you can use with File::Find. Free Download
movieinfo is a Perl module created to dump information about movie file(s). Free Download
The Mobile Device Information project is a Java Swing application that provides desktop interface access to the WURFL. Free Download
Latest Software
Popular Software
Favourite Software