Changes

From SimplyBook.me
Line 1,378: Line 1,378:  
=== getWorkDaysTimes ===
 
=== getWorkDaysTimes ===
   −
<code>getWorkDaysTimes($startDateTime, $endDateTime)</code>
+
<code>getWorkDaysTimes($startDateTime, $endDateTime, $type = 'unit_group')</code>
    
Parameters:
 
Parameters:
Line 1,384: Line 1,384:  
* '''$startDateTime''' string  
 
* '''$startDateTime''' string  
 
* '''$endDateTime''' string  
 
* '''$endDateTime''' string  
 +
* '''$type''' string. Optional. Either 'unit_group' or 'event'.
    
Returns Array.
 
Returns Array.
   −
Return busy time by unit id by GoogleCalendar plugin if enabled.If cache is not expired will return from cache, else load from google and save to cache
+
Return busy time by unit id by GoogleCalendar plugin if enabled. Please note that this method may return not actual data because data synchronization between server and Google Calendar may take some time and synchronized data are cached for 15 minutes.
 
      
----
 
----