Smart.Framework Logo

final class \SmartHTMLCalendar
{ } ->

Class: SmartHTMLCalendar - Generates a complex HTML Calendar that can handle events.


class Methods

public function __construct ( $date_string, $highlight_selected = false, $width = "", $css_class = "" ) {} @ 
Constructor - Calls the setDate function
public function isMobile ( $is_mobile ) {} -> 
public function setMonthNames ( $y_month_names_arr ) {} -> 
public function setDayNames ( $y_day_names_arr ) {} -> 
public function addDayEvent ( string $html, string $start_date_string, bool|string $end_date_string = false ) {} -> VOID
@return: {void}
@param: {string} $html: The raw HTML to place on the calendar for this event
@param: {string} $start_date_string: Date string for when the event starts
@param: {bool|string} $end_date_string: Date string for when the event ends. Defaults to start date
Add a daily event to the calendar
public function clearDayEvents ( ) {} -> VOID
@return: {void}
Clear all daily events for the calendar
public function setStartOfWeek ( int|string $offset ) {} -> 
@param: {int|string} $offset: Day to start on, ex: "Monday" or 0-6 where 0 is Sunday
Sets the first day of Week
public function draw ( ) {} -> STRING
@return: {string}
@param: {bool} $echo: Whether to echo resulting calendar
Show the Calendars current date

class Properties


class Constants



documentation generated on: 2023-10-19 23:15:58 +0000


Smart.Framework © 2009-2023 unix-world.org