SproutCMS

This is the code documentation for the SproutCMS project

class HomePages

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

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2024-11-25
**/
class NewClassName extends HomePages {
    
    /**
    * Return home page record for given sub-site
    **/
    public function getForSubSite (int $subsite_id) {
        // Method code goes here
    }
    
    /**
    * Return list of active banners for given home page
    **/
    public function getActiveBanners (int $homepage_id, int $limit) {
        // Method code goes here
    }
    
    /**
    * Return list of active promos for given home page
    **/
    public function getActivePromos (int $homepage_id, int $limit) {
        // Method code goes here
    }
    
    /**
    * Return a randomly selected active banner for given home page
    **/
    public function getRandomActiveBanner (int $homepage_id) {
        // Method code goes here
    }
    
}
?>