The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Wiki::Toolkit::Formatter::Mediawiki::Link - Link object returned by Wiki::Toolkit::Formatter::Mediawiki's find_internal_links method.

SYNOPSIS

This package implements a link object for the Wiki::Toolkit::Formatter::Mediawiki which stores a link 'name' and its 'type' be it page, external, or a template link. If both 'name' and 'type' are not provided, the method returns undef.

    use Wiki::Toolkit
    use Wiki::Toolkit::Store::Mediawiki;
    use Wiki::Toolkit::Formatter::Mediawiki;
    
    my $store = Wiki::Toolkit::Store::Mediawiki->new ( ... );
    # See below for parameter details.
    my $formatter = Wiki::Toolkit::Formatter::Mediawiki->new (%config,
                                                              store => $store);
    my $wiki = Wiki::Toolkit->new (store => $store, formatter => $formatter);
    
    my $content = $config{wiki}->retrieve_node ($node);
    my @links_to = $config{formatter}->find_internal_links ($content);
    
    foreach my $link (@links_to){
        print $link . "\n"
          unless $link->{type} eq 'EXTERNAL';
    }

METHODS

new

SEE ALSO

Wiki::Toolkit::Kwiki
Wiki::Toolkit
Wiki::Toolkit::Formatter::Mediawiki
Wiki::Toolkit::Store::Mediawiki

AUTHOR

Derek R. Price, <derek at ximbiot.com>

BUGS

Please report any bugs or feature requests to bug-cgi-wiki-formatter-mediawiki-link at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Wiki-Toolkit-Formatter-Mediawiki-Link. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Wiki::Toolkit::Formatter::Mediawiki::Link

You can also look for information at:

ACKNOWLEDGEMENTS

My thanks go to Kake Pugh, for providing the well written Wiki::Toolkit and Wiki::Toolkit::Kwiki modules, which got me started on this.

COPYRIGHT & LICENSE

Copyright 2008 Ximbiot LLC., all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.