Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

URI::Bookmark
Perl module class encapsulating an entry in a typical bookmark file.

URI::Bookmark - Perl module class encapsulating an entry in a typical bookmark file.


NAME

URI::Bookmark - Perl module class encapsulating an entry in a typical bookmark file.


SYNOPSIS

See the URI::Bookmarks manpage.


DESCRIPTION

URI::Bookmark is a subclass of Tree::DAG_Node, so that each entry in the bookmark collection is a node in a directed acyclic graph.

All methods from Tree::DAG_Node are available.

Each instance has a type, which can be:


   `root'       --  the root of the bookmark tree (this is also a folder)

   `folder'     --  a folder containing more entries 

   `bookmark'   --  a bookmark (duh)

   `rule'       --  a horizontal rule separating entries

METHODS

  • set_attribs
  • 
      $bookmark->set_attribs(name => 'Slashdot',
    
                             type => bookmark,
    
                             HREF => 'http://slashdot.org');

    This method should be self-explanatory. The allowed attributes are: `name', `type', `HREF', `ADD_DATE', `LAST_MODIFIED', `LAST_VISIT', `ALIASOF', `ALIASID', `description'. Attempts to set any others will be ignored and generate a warning.

  • dump_attribs
  • 
      $bookmark->dump_attribs();

    Dumps all attribute (key, value) pairs for this node, one per line. This is only really for debugging.

  • type
  • 
      my $type = $bookmark->type();
    
      $bookmark->type($new_type);

    If a parameter is specified, sets the bookmark to the type given by it. Generates a warning if the type given isn't valid.

    Returns the current type of the bookmark.


AUTHOR

Adam Spiers <adam@spiers.net>


SEE ALSO

the URI::Bookmarks manpage, the URI::Bookmarks::* manpage, the URI::Bookmark::* manpage, perl(1).

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy