<<

NAME

C4::NewsChannels - Functions to manage the news channels and its categories

DESCRIPTION

This module provides the functions needed to admin the news channels and its categories

FUNCTIONS

news_channels
  ($count, @channels) = &news_channels($channel_name, $id_category, $unclassified);

Looks up news channels by name or category.

$channel_name is the channel name to search.

$id_category is the channel category code to search.

$$unclassified if it is set and $channel_name and $id_category search for the news channels without a category

if none of the params are set &news_channels returns all the news channels.

&news_channels returns two values: an integer giving the number of news channels found and a reference to an array of references to hash, which has the news_channels and news_channels_categories fields.

news_channels_by_category
  ($count, @results) = &news_channels_by_category();

Looks up news channels grouped by category.

&news_channels_by_category returns two values: an integer giving the number of categories found and a reference to an array of references to hash, which the following keys:

channels_count

The number of news channels in that category

channels

A reference to an array of references to hash which keys are the new_channels fields.

Additionally the last index of results has a reference to all the news channels which don't have a category

GetNewsToDisplay

    $news = &GetNewsToDisplay($lang);
    C<$news> is a ref to an array which containts
    all news with expirationdate > today or expirationdate is null.

AUTHOR

TG

POD ERRORS

Hey! The above document had some coding errors, which are explained below:

Around line 313:

You forgot a '=back' before '=head2'

You forgot a '=back' before '=head2'

Around line 418:

=back without =over

<<