Property | Type | Description | |
---|---|---|---|
$day_type | string | How to display names of days | |
$month_type | string | How to display months | |
$next_prev_url | boolean | Url base to use for next/prev month links | |
$replacements | array | Replacements array for template | |
$show_next_prev | boolean | Whether to show next/prev month links | |
$show_other_days | boolean | Show days of other months | |
$start_day | string | Day of the week to start the calendar on | |
$template | mixed | Calendar layout template |
Property | Type | Description | |
---|---|---|---|
$CI | object | CI Singleton |
Method | Description | |
---|---|---|
__construct ( array $config = [] ) : void | Class constructor | |
adjust_date ( $month, $year ) : array | Adjust Date | |
default_template ( ) : array | Set Default Template Data | |
generate ( $year = '', $month = '', $data = [] ) : string | Generate the calendar | |
get_day_names ( $day_type = '' ) : array | Get Day Names | |
get_month_name ( $month ) : string | Get Month Name | |
get_total_days ( $month, $year ) : integer | Total days in a given month | |
initialize ( $config = [] ) : CI_Calendar | Initialize the user preferences | |
parse_template ( ) : CI_Calendar | Parse Template |
public __construct ( array $config = [] ) : void | ||
$config | array | Calendar options |
return | void |
public adjust_date ( $month, $year ) : array | ||
return | array |
public default_template ( ) : array | ||
return | array |
public get_day_names ( $day_type = '' ) : array | ||
return | array |
public get_month_name ( $month ) : string | ||
return | string |
public get_total_days ( $month, $year ) : integer | ||
return | integer |
public initialize ( $config = [] ) : CI_Calendar | ||
return | CI_Calendar |
public parse_template ( ) : CI_Calendar | ||
return | CI_Calendar |
public bool $next_prev_url | ||
return | boolean |
public array $replacements | ||
return | array |
public bool $show_next_prev | ||
return | boolean |
public bool $show_other_days | ||
return | boolean |
public string $start_day | ||
return | string |