Sitellite Application Framework
Class Tree         Index         All Elements

Class: MiniCal

Source Location: Program_Root/Date/Calendar/Mini.php

Class Overview


A mini calendar class, useful for displaying tiny monthly calendar summaries in a web site or application UI.


Author(s)

Version

  • 1.0, 2004-04-26, $Id: Mini.php,v 1.1.1.1 2005/04/29 04:44:34 lux Exp $

Copyright

  • Copyright (C) 2004, Simian Systems Inc.

Methods


Inherited Variables

Inherited Methods


Class Details

[line 31]
A mini calendar class, useful for displaying tiny monthly calendar summaries in a web site or application UI.


1 <?php
2
3 loader_import ('saf.Date.Calendar.Mini');
4
5 $cal = new MiniCal ($parameters['minical']);
6
7 $cal->addLink (5, '/index/sitellite-calendar-event-action?id=3');
8 $cal->addLink (16, '/index/sitellite-calendar-event-action?id=5');
9 $cal->addLink (21, '/index/sitellite-calendar-event-action?id=7');
10 $cal->addLink (26, '/index/sitellite-calendar-event-action?id=9');
11
12 echo $cal->render ();
13
14 ? >




Tags:

access:  public
version:  1.0, 2004-04-26, $Id: Mini.php,v 1.1.1.1 2005/04/29 04:44:34 lux Exp $
license:  http://www.sitellite.org/index/license
copyright:  Copyright (C) 2004, Simian Systems Inc.
author:  John Luxford <mailto:lux@simian.ca>


[ Top ]


Class Methods


constructor MiniCal [line 38]

MiniCal MiniCal( string $mc)

Constructor method.



Tags:

access:  public


Parameters:

string   $mc  

[ Top ]

method addLink [line 67]

void addLink( integer $day, string $link)

Sets the specified day to link to the specified link.



Tags:

access:  public


Parameters:

integer   $day  
string   $link  

[ Top ]

method isActive [line 114]

boolean isActive( integer $r, integer $c)

Determines whether the specified row and column is active.



Tags:

access:  public


Parameters:

integer   $r  
integer   $c  

[ Top ]

method isCurrent [line 142]

boolean isCurrent( integer $day)

Determines whether the specified day is the current date.



Tags:

access:  public


Parameters:

integer   $day  

[ Top ]

method isLink [line 128]

boolean isLink( string $day)

Determines whether there is a link for the specified day.



Tags:

access:  public


Parameters:

string   $day  

[ Top ]

method isWeekend [line 156]

boolean isWeekend( integer $day)

Determines whether the specified day is on a weekend.



Tags:

access:  public


Parameters:

integer   $day  

[ Top ]

method monthName [line 102]

string monthName( )

Returns the name of the current month.



Tags:

access:  public


[ Top ]

method nextDate [line 92]

string nextDate( )

Returns the next month as a $mc value.



Tags:

access:  public


[ Top ]

method prevDate [line 82]

string prevDate( )

Returns the previous month as a $mc value.



Tags:

access:  public


[ Top ]

method render [line 170]

string render( )

Renders the HTML calendar.



Tags:

access:  public


[ Top ]


Copyright © 2007, SIMIAN systems Inc.
All rights reserved. Privacy policy
Documentation generated on Tue, 13 Feb 2007 17:18:14 -0600 by Sitellite AppDoc and phpDocumentor 1.2.2