phpDocumentor plugins
Calendar
[ class tree: plugins ] [ index: plugins ] [ all elements ]

Class: Calendar

Source Location: /qp_plugins/calendar_plugin/_calendar.plugin.php

Class Calendar

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  
mixed   $Plugin   A reference to the Calendar plugin class.
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()   Calendar->set(-)

[ Top ]
Properties
boolean   $browseyears [line 351]

Do we want to browse years in the caption? True by default for mode == year, false for mode == month (gets set in constructor).


[ Top ]
mixed   $cellend [line 339]

[ Top ]
mixed   $cellstart [line 338]

[ Top ]
mixed   $context_isolation [line 362]

[ Top ]
mixed   $displaycaption [line 312]

[ Top ]
mixed   $emptycellcontent [line 344]

[ Top ]
mixed   $emptycellend [line 342]

[ Top ]
mixed   $emptycellstart [line 341]

[ Top ]
mixed   $headercellend [line 336]

[ Top ]
mixed   $headercellstart [line 335]

[ Top ]
mixed   $headerdisplay [line 332]

[ Top ]
mixed   $headerrowend [line 334]

[ Top ]
mixed   $headerrowstart [line 333]

[ Top ]
mixed   $linktomontharchive [line 316]

[ Top ]
mixed   $link_type [line 361]

[ Top ]
string   $mode [line 294]

'month' or 'year'


[ Top ]
string   $month [line 288]

The month to display or empty in mode 'year' with no selected month.


[ Top ]
mixed   $monthend [line 315]

[ Top ]
mixed   $monthformat [line 313]

[ Top ]
mixed   $monthstart [line 314]

[ Top ]
string   $navigation = 'tfoot' [line 324]

Where to do the navigation

'caption' or 'tfoot';


[ Top ]
mixed   $params = array( ) [line 364]

[ Top ]
mixed   $Plugin [line 369]

A reference to the Calendar plugin class.


[ Top ]
string   $request [line 301]

SQL query string


[ Top ]
mixed   $result [line 305]

Result set


[ Top ]
integer   $result_num_rows [line 310]

Number of rows in result set


[ Top ]
mixed   $rowend [line 330]

[ Top ]
mixed   $rowstart [line 329]

[ Top ]
mixed   $tableend [line 327]

[ Top ]
mixed   $tablestart [line 326]

[ Top ]
boolean   $today_is_visible [line 358]

Is today in the displayed frame?

API Tags:
Access:  protected


[ Top ]
mixed   $where [line 296]

[ Top ]
mixed   $year [line 282]

[ Top ]
Methods
Constructor Calendar  [line 381]

  Calendar Calendar( [string $m = ''], [array $params = array()]  )

Calendar::Calendar(-)

Constructor

Parameters:
string   $m:  Month ('YYYYMM'), year ('YYYY'), current ('')
array   $params:  Associative array of parameters. Valid keys are:
  • 'min_timestamp' : Minimum unix timestamp the user can browse too or 'query' (Default: 2000-01-01)
  • 'max_timestamp' : Maximum unix timestamp the user can browse too or 'query' (Default: now + 1 year )


[ Top ]
archive_link  [line 851]

  void archive_link( string $text, string $title, string $year, [string $month = NULL], [string $day = NULL]  )

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 523]

  void display( )

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 886]

  array getNavLinks( string $direction  )

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 ]
set  [line 512]

  void set( $var, $value  )

Calendar->set(-)

set a variable

Parameters:
   $var: 
   $value: 


[ Top ]