[Vtigercrm-commits] [vtiger-commits] r8000 - /vtigercrm/trunk/modules/Calendar/Calendar.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Thu Jul 13 12:54:31 EDT 2006


Author: richie
Date: Thu Jul 13 10:54:28 2006
New Revision: 8000

Log:
API docs and logs updated

Modified:
    vtigercrm/trunk/modules/Calendar/Calendar.php

Modified: vtigercrm/trunk/modules/Calendar/Calendar.php
==============================================================================
--- vtigercrm/trunk/modules/Calendar/Calendar.php (original)
+++ vtigercrm/trunk/modules/Calendar/Calendar.php Thu Jul 13 10:54:28 2006
@@ -35,7 +35,10 @@
 		$this->date_time = new DateTime($data,true);
 		$this->constructLayout();
 	}
-	/*To get view Label
+	/**
+	 * Function to get calendarview Label
+	 * @param string  $view   - calendarview
+	 * return string  - calendarview Label 
 	*/
 	function getCalendarView($view)
 	{
@@ -52,7 +55,8 @@
 		}
 	}
 
-	/*To construct layout wrt view
+	/**
+	 * Function to set values for calendar object depends on calendar view
 	*/
 	function constructLayout()
 	{
@@ -117,6 +121,11 @@
 		}
 	}
 
+	/**
+	 * Function to get date info depends on calendarview
+	 * @param  string   $type  - string 'increment' or 'decrment'
+	 */
+
 	function get_datechange_info($type)
 	{
 		if($type == 'next')
@@ -143,6 +152,11 @@
 		return $day->get_date_str();
 	}
 	
+	/**
+	 * Function to get activities
+	 * @param  array $current_user  - user data
+	 * @param  string $free_busy    - 
+	 */
 	function add_Activities($current_user,$free_busy='')
 	{
 		if($current_user->hour_format == '')
@@ -212,6 +226,12 @@
         var $end_time;
 	var $activities = Array();
 	
+	/**
+	* Constructor for Layout class
+	* @param  string   $view - calendarview
+	* @param  string   $time - time string 
+	*/
+
 	function Layout($view,$time)
         {
                 $this->view = $view;
@@ -224,6 +244,11 @@
                         $this->end_time = $this->start_time->getHourendtime();
         }
 
+	/**
+	* Function to get view 
+	* return currentview
+	*/
+
 	function getView()
 	{
 		return $this->view;





More information about the vtigercrm-commits mailing list