EnsEMBL::Web::Record

EnsEMBL::Web::Record is a family of modules used for managing a user's persistant data in a database.
Download

EnsEMBL::Web::Record Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • The European Bioinformatics Institute and Genome Research Limite
  • Publisher web site:
  • http://search.cpan.org/~mjw/EnsEMBL-Web-Record-1.01/lib/EnsEMBL/Web/Record.pm

EnsEMBL::Web::Record Tags


EnsEMBL::Web::Record Description

EnsEMBL::Web::Record is a family of modules used for managing a user's persistant data in a database. EnsEMBL::Web::Record is a family of modules used for managing a user's persistant data in a database.SYNOPSISMany web sites now encourage users to register and login to access more advanced features, and to customise a site to their needs.The EnsEMBL::Web::Record group of Perl modules is design to manage any arbitrary type of user created data in an SQL database. This module follows the Active Record design pattern, in that each new instantiated Record object represents a single row of a database.That object can be manipulated programatically, and any changes made can be stored in the database with a single record->save function call.Because arbitrary Perl data structures can be stored in this manner, EnsEMBL::Web::Record allows user preferences to be easily saved, and allows developers to implement new featurs quickly.This module was first used (and has been abstracted from) the Ensembl genome browser (http://www.ensembl.org).New user data can be added to the database:use EnsEMBL::Web::Record; my $bookmark = EnsEMBL::Web::Record->new(); $bookmark->url('http://www.ensembl.org'); $bookmark->name('Ensembl'); $bookmark->save; ... The Record can be associated with an user id: $record->user($id); The same record can also be removed: $bookmark->delete;EnsEMBL::Web::Record also provides a number of methods for getting collections of records from the database, using a field selector. EnsEMBL::Web::Record::find_bookmarks_by_user_id($id). Requirements: · Perl


EnsEMBL::Web::Record Related Software