Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Shift getUserNextShift: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
Cg_pham (talk | contribs)
No edit summary
 
Line 1: Line 1:
{{HelpFiles}}  
{{HelpFiles}}  


==== Shift_getUserNextShift ====
==== Shift_getUserNextShift ====


Return the next shift of a user  
Return the next shift of a user  
Line 116: Line 116:


| style="border: 1px solid #010101" width="356" |  
| style="border: 1px solid #010101" width="356" |  
End date datetime object array of this shift (with timezone of specfied user)'''<br>'''
End date datetime object array of this shift (with timezone of specfied user)'''<br>'''  


|}
|}
Examplearray nextShift = Shift_getUserNextShift(789456);print(nextShift);AvailabilityVersion 5.8 __NOTOC__[[Category:General_Functions]]
 
'''Example'''
 
array nextShift = Shift_getUserNextShift(789456);
 
print(nextShift);
 
Availability
 
Version 5.8
 
[[Category:General_Functions]]

Latest revision as of 07:13, 5 January 2012



Shift_getUserNextShift

Return the next shift of a user

Syntax

Shift_getUserNextShift(userResourceId)

Arguments

  • userResourceId: is a number expression

Return value

array which is Shift Object:

Index

Data type

Value

OBJECT_TYPE

number

25

SHIFT_ID

number

Id of next shift

SHIFT_USER_RESOURCE_ID

number

User resource id of this shift

SHIFT_TEAM_ID

number

Shift team id of this shift

SHIFT_FACILITY_RESOURCE_ID

number

Group resource id of this shift

SHIFT_DAYS_UNTIL_DEMANDS_ARE_DECREASED

number

DUDAD of this shift

SHIFT_DISAPPROVE_DAYS

number

Disapprove days of this shift

SHIFT_START_DATE

array

Start date datetime object array of this shift (with timezone of specfied user)

SHIFT_END_DATE

array

End date datetime object array of this shift (with timezone of specfied user)

Example

array nextShift = Shift_getUserNextShift(789456);

print(nextShift);

Availability

Version 5.8