SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class HomePages

Functions for dealing with promo and banner images on the home page(s)

Functions

NameVisibilityDescription
getActiveBannerspublic (static)Return list of active banners for given home page
getActivePromospublic (static)Return list of active promos for given home page
getForSubSitepublic (static)Return home page record for given sub-site
getRandomActiveBannerpublic (static)Return a randomly selected active banner for given home page

public getActiveBanners

array HomePages::getActiveBanners ( int $homepage_id [, int $limit ] );

Return list of active banners for given home page

public getActivePromos

array HomePages::getActivePromos ( int $homepage_id , int $limit );

Return list of active promos for given home page

public getForSubSite

array HomePages::getForSubSite ( [ int $subsite_id ] );

Return home page record for given sub-site

public getRandomActiveBanner

array HomePages::getRandomActiveBanner ( int $homepage_id );

Return a randomly selected active banner for given home page