| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# Copyright 2014-2016 - Giovanni Simoni |
|
2
|
|
|
|
|
|
|
# |
|
3
|
|
|
|
|
|
|
# This file is part of PFT. |
|
4
|
|
|
|
|
|
|
# |
|
5
|
|
|
|
|
|
|
# PFT is free software: you can redistribute it and/or modify it under the |
|
6
|
|
|
|
|
|
|
# terms of the GNU General Public License as published by the Free |
|
7
|
|
|
|
|
|
|
# Software Foundation, either version 3 of the License, or (at your |
|
8
|
|
|
|
|
|
|
# option) any later version. |
|
9
|
|
|
|
|
|
|
# |
|
10
|
|
|
|
|
|
|
# PFT is distributed in the hope that it will be useful, but WITHOUT ANY |
|
11
|
|
|
|
|
|
|
# WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
12
|
|
|
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
13
|
|
|
|
|
|
|
# for more details. |
|
14
|
|
|
|
|
|
|
# |
|
15
|
|
|
|
|
|
|
# You should have received a copy of the GNU General Public License along |
|
16
|
|
|
|
|
|
|
# with PFT. If not, see . |
|
17
|
|
|
|
|
|
|
# |
|
18
|
|
|
|
|
|
|
package PFT::Content::Blog v1.4.1; |
|
19
|
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=encoding utf8 |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 NAME |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
PFT::Content::Blog - A text entry with date. |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
use PFT::Content::Blog; |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
my $f1 = PFT::Content::Blog->new({ |
|
31
|
|
|
|
|
|
|
tree => $tree, |
|
32
|
|
|
|
|
|
|
path => $path, |
|
33
|
|
|
|
|
|
|
name => $name, # optional, defaults to basename($path) |
|
34
|
|
|
|
|
|
|
}); |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Extends C. |
|
39
|
|
|
|
|
|
|
Retains the same interface. |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=cut |
|
42
|
|
|
|
|
|
|
|
|
43
|
5
|
|
|
5
|
|
33
|
use utf8; |
|
|
5
|
|
|
|
|
11
|
|
|
|
5
|
|
|
|
|
26
|
|
|
44
|
5
|
|
|
5
|
|
162
|
use v5.16; |
|
|
5
|
|
|
|
|
19
|
|
|
45
|
5
|
|
|
5
|
|
25
|
use strict; |
|
|
5
|
|
|
|
|
7
|
|
|
|
5
|
|
|
|
|
91
|
|
|
46
|
5
|
|
|
5
|
|
22
|
use warnings; |
|
|
5
|
|
|
|
|
9
|
|
|
|
5
|
|
|
|
|
162
|
|
|
47
|
|
|
|
|
|
|
|
|
48
|
5
|
|
|
5
|
|
27
|
use parent 'PFT::Content::Entry'; |
|
|
5
|
|
|
|
|
9
|
|
|
|
5
|
|
|
|
|
33
|
|
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
1 |