dev.obliquid.com: obliquid
[ class tree: obliquid ] [ index: obliquid ] [ all elements ]

Class: calutil

Source Location: Program_Root/classes/obliquid/calutil.php

Class Overview


Date utilities. Multilanguage and UTF-8 safe date utils.


Methods


Inherited Variables

Inherited Methods


Class Details

[line 31]
Date utilities. Multilanguage and UTF-8 safe date utils.

PHP strftime does not work with UTF-8 and east asian languages. Pear Date class does not work correctly too, and so I write my own.






[ Top ]


Class Methods


method getMonthAbbrname [line 55]

string getMonthAbbrname( integer $month, [text $locale = ""])

Returns the abbreviated month name for the given month in the current language.



Tags:

return:  full month name


Parameters:

integer   $month   month ordinal number (ex. 1=January, ... 12=December)
text   $locale   an optional parameter to ask month name in a different locale

[ Top ]

method getMonthFullname [line 39]

string getMonthFullname( integer $month, [text $locale = ""])

Returns the full month name for the given month in the current language.



Tags:

return:  full month name


Parameters:

integer   $month   month ordinal number (ex. 1=January, ... 12=December)
text   $locale   an optional parameter to ask month name in a different locale

[ Top ]

method getMonthYearSelect [line 87]

void getMonthYearSelect( object $dbf, text $monthField, text $yearField)

Gets a month and year dropdown





Parameters:

object   $dbf   a db_form object
text   $monthField   name of the month field
text   $yearField   name of the year field

[ Top ]

method getWeekdayAbbrname [line 74]

string getWeekdayAbbrname( integer $dayofweek, [text $locale = ""])

Returns the abbreviated weekday name for the given date.

Short representation of the weekday. For european languages it will be the first three chars of the name. Chinese uses the last multibyte symbol instead. For this reason the substr approach used in Pear fails.




Tags:

return:  abbreviated weekday name


Parameters:

integer   $dayofweek   day of week 0=Sunday, 1=Monday,...
text   $locale   an optional parameter to ask day name in a different locale

[ Top ]


Documentation generated on Tue, 29 Mar 2005 09:03:41 -0800 by phpDocumentor 1.2.0rc2