ePortal::HTML::Calendar - Calendar dialog box.
This module is used to make a dialog with a monthly calendar.
% $Calendar = new ePortal::HTML::Calendar( m => $m ); % $Calendar->url_all('self'); ... <% $Calendar->draw %>
Object contructor. date is passed to set_date. Calendar's date may be initialized from URL. The actual date source may be checked with date_source() member function.
set_date
date_source()
Constructs self referencing URL removing all myself specific parameters. New parameters should be passed to this function to make them added to URL.
Returns URL with parameters.
Sets an URL for particular day in the current month view. If $url eq 'self' than self-refence URL will be contructed without parameters loss.
Sets an url for each day in calendar. $url parameter is passed to url() method. See it for details
url()
Returns a sting which points to a source of the date
self - self initialized date (today)
set_date - set_date() was called
url - adjusted from URL
Draws the calendar. Returns an HTML in array context and outputs HTML via $m in scalar context.
Returns a date selected. It returns an array (YYYY,MM,DD) in array context and nicely formatted date 'DD.MM.YYYY' in scalar context.
Adjust the calendar to the date. Parameter may be:
'now' or 'today' - set the date to today
'cal_nmon','next' or 'cal_pmon','prev' - adjust to next or prev month
[YYYY,MM,DD] - array ref to (YYYY,MM,DD)
(YYYY,MM,DD) - array of (YYYY,MM,DD)
'DD.MM.YYYY' - date as string
Sergey Rusakov, <rusakov_sa@users.sourceforge.net>
To install ePortal, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ePortal
CPAN shell
perl -MCPAN -e shell install ePortal
For more information on module installation, please visit the detailed CPAN module installation guide.