SproutCMS

This is the code documentation for the SproutCMS project

function getRandomActiveBanner()

Return a randomly selected active banner for given home page

Usage

array HomePages::getRandomActiveBanner ( int $homepage_id );

Arguments

  1. int $homepage_id
    Home page record ID

Exceptions thrown

  • QueryException

Return value

  • array
    Single database row; heading, description, link, link_label, filename