The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

WWW::Mixi::OO::Util::EntryParserMixin - WWW::Mixi::OO's Entry Parser Mixin

SYNOPSIS

package WWW::Mixi:OO::FooPage;
# use base's order is important!
use base qw(WWW::Mixi::OO::Page); # or your super class
use base qw(WWW::Mixi::OO::Util::EntryParserMixin);
# and use...
my $this->parse_entry($entry_text);

DESCRIPTION

entry parser mixin.

METHODS

parse_image_thumbnail
my @items = $util->parse_image_thumbnail('<table>...</table>');

parse image thumbnail html parts, and return array of image's information hashrefs.

image's information items:

URI of image.

subject

subject of image(img/alt).

URI of image thumbnail.

parse_entry
my $data = $util->parse_entry('....');

parse entry text, and return hashref. items:

body

body text.

images

arrayref of images (see parse_image_thumbnail).

SEE ALSO

WWW::Mixi::OO, WWW::Mixi::OO::Util

AUTHOR

Topia <topia@clovery.jp>

COPYRIGHT AND LICENSE

Copyright (C) 2005 by Topia.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.