Functions for dealing with promo and banner images on the home page(s)
This is the code documentation for the SproutCMS project
Search documentation |
class HomePagesFunctions 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 } } ?> |
Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Monday, 3rd April, 2023 at 02:59 pm |