Class Channel : getProgrammes Method


Array getProgrammes( [ Date dtFrom ], [ Date dtTo ] )

Summary

Get access to the programmes for this channel.


Remarks

Get the programmes for this channel if this channel is selected.

The start and end dates can be empty. If they are then the start and end become the start and end of all listings in the local database.


Parameters

ParameterDescription
Date dtFrom [optional] The start date for the listings
Date dtTo [optional] The end date for the listings


Returns

Returns an Array of Programme objects


Examples

Show the programme info popup for every programme in the local database

var listings = app.getListingsManager();

var channels = listings.getChannels();
for( nChannel in channels )
{
var channel = channels[ nChannel ];
var arrProgs = channel.getProgrammes();

for( i in arrProgs )
{
app.getViewManager().showProgrammeInfoPopup( arrProgs[ i ], point );
}
listings.clearProgrammeCache();
}


See Also

  • ListingsManager : getProgrammeListForTimeRange
  • Programme


    Requirements

    Build 1100