From be368a82f789aaa9f0ac0c8b6fa72a2f7cd0b6d4 Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Thu, 20 Feb 2014 15:46:05 +0200 Subject: Date helper days_in_month(), CI_Calendar::get_total_days() changes - days_in_month() now uses cal_days_in_month(), if available. - CI_Calendar::get_total_days() is now an alias for days_in_month(). --- user_guide_src/source/changelog.rst | 6 ++++-- user_guide_src/source/helpers/date_helper.rst | 3 +++ user_guide_src/source/libraries/calendar.rst | 3 +++ 3 files changed, 10 insertions(+), 2 deletions(-) (limited to 'user_guide_src') diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst index ccbb950af..a3e79805f 100644 --- a/user_guide_src/source/changelog.rst +++ b/user_guide_src/source/changelog.rst @@ -65,11 +65,12 @@ Release Date: Not Released - :doc:`Date Helper ` changes include: - - :func:`now()` now works with all timezone strings supported by PHP. - Added an optional third parameter to :func:`timespan()` that constrains the number of time units displayed. - Added an optional parameter to :func:`timezone_menu()` that allows more attributes to be added to the generated select tag. - - Deprecated ``standard_date()``, which now just uses the native ``date()`` with `DateTime constants `_. - Added function :func:`date_range()` that generates a list of dates between a specified period. + - Deprecated ``standard_date()``, which now just uses the native ``date()`` with `DateTime constants `_. + - Changed :func:`now()` to work with all timezone strings supported by PHP. + - Changed :func:`days_in_month()` to use the native ``cal_days_in_month()`` PHP function, if available. - :doc:`URL Helper ` changes include: @@ -301,6 +302,7 @@ Release Date: Not Released - Added configuration to generate days of other months instead of blank cells. - Added auto-configuration for *next_prev_url* if it is empty and *show_prev_next* is set to TRUE. - Added support for templating via an array in addition to the encoded string. + - Changed method ``get_total_days()`` to be an alias for :doc:`Date Helper ` :func:`days_in_month()`. - :doc:`Cart Library ` changes include: diff --git a/user_guide_src/source/helpers/date_helper.rst b/user_guide_src/source/helpers/date_helper.rst index 39a9cb325..d9019a203 100644 --- a/user_guide_src/source/helpers/date_helper.rst +++ b/user_guide_src/source/helpers/date_helper.rst @@ -268,6 +268,9 @@ The following functions are available: If the second parameter is empty, the current year will be used. + .. note:: This function will alias the native ``cal_days_in_month()``, if + it is available. + .. function:: date_range([$unix_start = ''[, $mixed = ''[, $is_unix = TRUE[, $format = 'Y-m-d']]]]) :param int $unix_start: UNIX timestamp of the range start date diff --git a/user_guide_src/source/libraries/calendar.rst b/user_guide_src/source/libraries/calendar.rst index b4f95db1b..20832740b 100644 --- a/user_guide_src/source/libraries/calendar.rst +++ b/user_guide_src/source/libraries/calendar.rst @@ -286,6 +286,9 @@ Class Reference echo $this->calendar->get_total_days(2, 2012); // 29 + .. note:: This method is an alias for :doc:`Date Helper + <../helpers/date_helper>` function :func:`days_in_month()`. + .. method:: default_template() :returns: An array of template values -- cgit v1.2.3-24-g4f1b