Merge up to 10305
This commit is contained in:
parent
fa2e5c2c90
commit
1edaca4ed2
65 changed files with 1300 additions and 477 deletions
|
|
@ -252,12 +252,35 @@ sub exportAssetCollateral {
|
|||
|
||||
=head2 getRssFeedItems ()
|
||||
|
||||
This method should throw an exception if it's not overridden. Its intention is
|
||||
to be overridden by whatever class is using it and should return an array
|
||||
reference of hash references. Each hash reference should contain at minimum a title,
|
||||
description, link, and date field. The date field can be either an epoch date, an RFC 1123
|
||||
date, or a ISO date in the format of YYYY-MM-DD HH:MM::SS. Optionally specify an
|
||||
author, and a guid field.
|
||||
This method needs to be overridden by any class that is using it. To ensure
|
||||
this, it will throw an exception.
|
||||
|
||||
It returns an array reference of hash references. The list below shows
|
||||
which ones are required, along with some common keys which are optional.
|
||||
Other keys may be added, as well.
|
||||
|
||||
=head3 Hash reference keys
|
||||
|
||||
=head4 title
|
||||
|
||||
=head4 description
|
||||
|
||||
=head4 link
|
||||
|
||||
This is a url to the item.
|
||||
|
||||
=head4 date
|
||||
|
||||
An epoch date, an RFC 1123 date, or a date in ISO format (referred to as MySQL format
|
||||
inside WebGUI)
|
||||
|
||||
=head4 author
|
||||
|
||||
This is optional.
|
||||
|
||||
=head4 guid
|
||||
|
||||
This is optional. A unique descriptor for this item.
|
||||
|
||||
=cut
|
||||
|
||||
|
|
@ -405,12 +428,29 @@ sub getFeed {
|
|||
return $feed;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 prepareView ()
|
||||
|
||||
Extend the master class to insert head links via addHeaderLinks.
|
||||
|
||||
=cut
|
||||
|
||||
sub prepareView {
|
||||
my $self = shift;
|
||||
$self->addHeaderLinks;
|
||||
return $self->next::method(@_);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 addHeaderLinks ()
|
||||
|
||||
Add RSS, Atom, or RDF links in the HEAD block of the Asset, depending
|
||||
on how the Asset has configured feedHeaderLinks.
|
||||
|
||||
=cut
|
||||
|
||||
sub addHeaderLinks {
|
||||
my $self = shift;
|
||||
my $style = $self->session->style;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue