channels.getChannels

Syntax

array channels.getChannels ( int vhost, mixed order = false, mixed visibility = 'ALL', int parentchannel = 0 )

Argument Info

NameTypeRequiredDefault valueDescription
vhostintRequirednoneThe vhost ID that the list of channels belong to in MediaFactory.
ordermixedOptionalfalseThe order in which you wish to have the channel list returned to you in.
visibilitymixedOptional'ALL'The visibility of the channel you want to filter on for the returned list of channels.
parentchannelintOptional0If set - the component returns only channels that are children of the given channel.

Return Values

FieldDescriptionPossible Values
idachannel idbthis is some copyc
nameachannelnamebN/A
createdacreationdatebN/A
groupidathe id of the parent channel, if any (depreciated)bN/A
groupnameathe name of the parent channel (deprecated)bN/A
parentchannelathe id of the parent channel, if anybN/A
descriptionadescription for the channelbN/A
geoblockingaeach item is a country code that is allowed to view the media item, if empty then all countries may view the mediabN/A
visibilitya"SHOWN" or "HIDDEN". Hiding a channel does not make the media within private, hidden or otherwise inaccessible.bN/A