| Mediawiki-Blame documentation | Contained in the Mediawiki-Blame distribution. |
Mediawiki::Blame::Revision - Mediawiki revision class
This document describes Mediawiki::Blame::Revision version 0.0.3
print $rev->r_id;
print $rev->timestamp;
print $rev->contributor;
for (@{ $rev->text }) {
print;
};
This module represents a revision on Mediawiki.
Returns the revision id associated with the revision. It is a natural number. Later revisions have higher numbers.
Returns the timestamp when the revision was made. It is in ISO 8601 format, for
instance 2007-07-23T21:43:56Z.
Returns the contributor who made the revision. This is either a Mediawiki username or an IP address.
Returns an arrayref of lines submitted for the revision. This is the whole text of the revision, not the difference to the previous one.
| Mediawiki-Blame documentation | Contained in the Mediawiki-Blame distribution. |
package Mediawiki::Blame::Revision; 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__