[Vtigercrm-commits] [vtiger-commits] r9189 - /vtigercrm/trunk/include/utils/RecurringType.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Aug 29 10:01:22 EDT 2006
Author: saraj
Date: Tue Aug 29 08:01:18 2006
New Revision: 9189
Log:
API docs has been added --Minnie
Modified:
vtigercrm/trunk/include/utils/RecurringType.php
Modified: vtigercrm/trunk/include/utils/RecurringType.php
==============================================================================
--- vtigercrm/trunk/include/utils/RecurringType.php (original)
+++ vtigercrm/trunk/include/utils/RecurringType.php Tue Aug 29 08:01:18 2006
@@ -29,6 +29,7 @@
*/
function RecurringType($repeat_arr)
{
+ //to get startdate and enddate in yyyy-mm-dd format
$st_date = explode("-",getDBInsertDateValue($repeat_arr["startdate"]));
$end_date = explode("-",getDBInsertDateValue($repeat_arr["enddate"]));
$start_date = Array(
@@ -278,6 +279,11 @@
return $recurringDates;
}
+ /** Function to get first day of the month(like first Monday or Friday and etc.)
+ * @param $dayofweek -- day of the week to repeat the event :: Type string
+ * @param $dateObj -- date object :: Type DateTime Object
+ * return $dateObj -- the date object on which the event repeats :: Type DateTime Object
+ */
function getFistdayofmonth($dayofweek,& $dateObj)
{
if($dayofweek < $dateObj->dayofweek)
@@ -299,6 +305,12 @@
return $dateObj;
}
+ /** Function to get last day of the month(like last Monday or Friday and etc.)
+ * @param $dayofweek -- day of the week to repeat the event :: Type string
+ * @param $dateObj -- date object :: Type DateTime Object
+ * return $dateObj -- the date object on which the event repeats :: Type DateTime Object
+ */
+
function getLastdayofmonth($dayofweek,& $dateObj)
{
if($dayofweek == $dateObj->dayofweek)
More information about the vtigercrm-commits
mailing list