2
2
# This program is distributed under the terms of the
3
3
# GNU General Public License, version 2.
5
# $Id: Page.pm 1616 2008-03-28 12:12:37Z takayama $
5
# $Id: Page.pm 2746 2008-07-10 01:56:21Z bchoate $
72
MT::Page - Movable Type page record
77
my $page = MT::Page->new;
78
$page->blog_id($blog->id);
79
$page->author_id($author->id);
80
$page->title('Page title');
81
$page->text('Some text');
87
The C<MT::Page> class is a subclass of L<MT::Entry>. Pages are very similar
88
to entries, except that they are not published in a reverse-chronological
89
listing, typically. Pages are published into folders, represented by
90
L<MT::Folder> instead of categories.
92
=head2 MT::Page->class_label
94
Returns the localized descriptive name for this class.
96
=head2 MT::Page->class_label_plural
98
Returns the localized, plural descriptive name for this class.
100
=head2 MT::Page->container_label
102
Returns the localized phrase identifying the "container" type for
103
pages (ie: "Folder").
105
=head2 MT::Page->container_type
107
Returns the string "folder", which is the MT type identifier for
108
the L<MT::Folder> class.
112
Returns the L<MT::Folder> the page is assigned to.
114
=head2 $page->archive_file
116
Returns the filename for the published page.
118
=head2 $page->archive_url
120
Returns the permalink for the page, based on the site_url of the
121
blog, and folder assignment for the page.
123
=head2 $page->permalink
125
Returns the permalink for the page.
127
=head2 $page->all_permalinks
129
Returns the permalink for the page.