Shift getUserNextShift

From Catglobe Wiki
Revision as of 10:11, 7 March 2011 by 127.0.0.1 (talk | contribs) (jrfconvert import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



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