PHP Class TI_Calendar, TastyIgniter

Inheritance: extends CI_Calendar
显示文件 Open project: tastyigniter/tastyigniter

Public Properties

Property Type Description
$day_type
$show_next_prev
$show_other_days
$start_day

Public Methods

Method Description
default_template ( ) : array Set Default Template Data
generate ( string $year = '', string $month = '', array $data = [] ) : string Generate the calendar
parse_template ( ) : CI_Calendar Parse Template

Method Details

default_template() public method

This is used in the event that the user has not created their own template
public default_template ( ) : array
return array

generate() public method

Generate the calendar
public generate ( string $year = '', string $month = '', array $data = [] ) : string
$year string
$month string
$data array the data to be shown in the calendar cells
return string

parse_template() public method

Harvests the data within the template {pseudo-variables} used to display the calendar
public parse_template ( ) : CI_Calendar
return CI_Calendar

Property Details

$day_type public_oe property

public $day_type

$show_next_prev public_oe property

public $show_next_prev

$show_other_days public_oe property

public $show_other_days

$start_day public_oe property

public $start_day