Display the tip of the day. (if enabled)
This class handles all tip of the day functions. Tips are stored in cms_tips database. Example:
<?php YAWK\tipOfDay::displayRandom($db); ?>
To show a random tip of the day.
Class covers backend functionality. See Methods Summary for Details!
- ┗ YAWK\tipOfDay
Copyright: 2009-2015 Daniel Retzl yawk.io
Author: Daniel Retzl firstname.lastname@example.org
Annotation: TipOfDay class serve functions to get and draw a tip of the day
Located at system/classes/tipOfDay.php
$published) : boolean
Draw a tip of the day
public setTip( object
Store a new tip to database
Get a random tip from database that is still unseen.
public getNextTipData( object
Get a the next single tip which is not already seen (still published) To get the order, ID and published fields will be used in the query.
public drawTip( object
$lang) : string
Draw tip of the day.