Class: Calendar
Source Location: /blogs/plugins/_calendar.plugin.php
Class Calendar
Class Overview
[ Top ]
Property Summary
| boolean | $browseyears | Do we want to browse years in the caption? True by default for mode == year, false for mode == month (gets set in constructor). |
| mixed | $cellend | |
| mixed | $cellstart | |
| mixed | $context_isolation | |
| mixed | $displaycaption | |
| mixed | $emptycellcontent | |
| mixed | $emptycellend | |
| mixed | $emptycellstart | |
| mixed | $headercellend | |
| mixed | $headercellstart | |
| mixed | $headerdisplay | |
| mixed | $headerrowend | |
| mixed | $headerrowstart | |
| mixed | $linktomontharchive | |
| mixed | $link_type | |
| string | $mode | 'month' or 'year' |
| string | $month | The month to display or empty in mode 'year' with no selected month. |
| mixed | $monthend | |
| mixed | $monthformat | |
| mixed | $monthstart | |
| string | $navigation | Where to do the navigation |
| mixed | $params | |
| string | $request | SQL query string |
| mixed | $result | Result set |
| integer | $result_num_rows | Number of rows in result set |
| mixed | $rowend | |
| mixed | $rowstart | |
| mixed | $tableend | |
| mixed | $tablestart | |
| boolean | $today_is_visible | Is today in the displayed frame? |
| mixed | $where | |
| mixed | $year |
[ Top ]
Method Summary
| Calendar | Calendar() | Calendar::Calendar(-) |
| void | archive_link() | Create a link to archive, using either URL params or extra path info. |
| void | display() | Display the calendar. |
| array | getNavLinks() | Get links to navigate between month / year. |
| void | set() |
[ Top ]
Properties
boolean
$browseyears
[line 362]
Do we want to browse years in the caption? True by default for mode == year, false for mode == month (gets set in constructor).
[ Top ]
string
$month
[line 299]
The month to display or empty in mode 'year' with no selected month.
[ Top ]
boolean
$today_is_visible
[line 369]
Is today in the displayed frame?
API Tags:| Access: | protected |
[ Top ]
Methods
Constructor Calendar [line 387]
|
Calendar::Calendar(-)
Constructor
Parameters:| string | $m: | Month ('YYYYMM'), year ('YYYY'), current ('') |
| array | $params: |
Associative array of parameters. Valid keys are:
|
[ Top ]
archive_link [line 863]
|
Create a link to archive, using either URL params or extra path info.
Can make contextual links.
Parameters:| string | $text: | |
| string | $title: | |
| string | $year: | year |
| string | $month: | month |
| string | $day: | day |
[ Top ]
display [line 526]
|
Display the calendar.
Information Tags:
| Todo: | If a specific day (mode == month) or month (mode == year) is selected, apply another class (default to some border) |
[ Top ]
getNavLinks [line 898]
|
Get links to navigate between month / year.
Unless min/max_timestamp='query' has been specified, this will not do any (time consuming!) queries to check where the posts are.
Parameters:| string | $direction: | 'prev' / 'next' |
[ Top ]
