| Mediawiki-Blame documentation | Contained in the Mediawiki-Blame distribution. |
Mediawiki::Blame::Line - Revision line class
This document describes Mediawiki::Blame::Line version 0.0.3
print join "\t",
$rev->r_id,
$rev->timestamp,
$rev->contributor,
$rev->text;
This module represents an line of a certain revision, annotated with who changed it last.
Returns the revision id of the revision when the line was changed last. It is a natural number. Later revisions have higher numbers.
Returns the timestamp when the line was changed last.
It is in ISO 8601 format, for instance 2007-07-23T21:43:56Z.
Returns the contributor who changed this line last. This is either a Mediawiki username or an IP address.
"r_id" and "contributor" can also return undef. This means that the
line has been changed earlier than "timestamp" and than revisions have been
fetched for analysing.
Returns the text of the line. This is source text with Mediawiki markup, not in HTML.
| Mediawiki-Blame documentation | Contained in the Mediawiki-Blame distribution. |
package Mediawiki::Blame::Line; use 5.008; use utf8; use strict; use warnings; use Class::Spiffy qw(-base field); our $VERSION = '0.0.3'; my @field_names = qw(r_id timestamp contributor text); for my $field_name (@field_names) { field $field_name; }; sub _new { my $class = shift; my $self = {}; bless $self, $class; $self->r_id(shift); $self->timestamp(shift); $self->contributor(shift); $self->text(shift); return $self; }; 1; __END__