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


Wiki-Toolkit-Formatter-Mediawiki documentation  | view source Contained in the Wiki-Toolkit-Formatter-Mediawiki distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

Top

new

SEE ALSO

Top

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

AUTHOR

Top

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

BUGS

Top

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

Top

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

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

You can also look for information at:

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Wiki-Toolkit-Formatter-Mediawiki-Link

* CPAN Ratings

http://cpanratings.perl.org/d/Wiki-Toolkit-Formatter-Mediawiki-Link

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Wiki-Toolkit-Formatter-Mediawiki-Link

* Search CPAN

http://search.cpan.org/dist/Wiki-Toolkit-Formatter-Mediawiki-Link

ACKNOWLEDGEMENTS

Top

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

Top


Wiki-Toolkit-Formatter-Mediawiki documentation  | view source Contained in the Wiki-Toolkit-Formatter-Mediawiki distribution.