Timesheet/Client.php

Show: inherited
Table of Contents

Client timesheet service file

Author
Dave Cutler  
Copyright
2011 SOS Staffing Inc.  
Package
Service  
Subpackage
Timesheet  

\Service_Timesheet_Client

Package: Service\Timesheet

Client timesheet

Parent(s)
\Service_Timesheet
Api
 
Author
Dave Cutler  
Copyright
2011 SOS Staffing Inc.  

Constants

Type Name Value
Constantstring TIMESHEET_URL

Timesheet web url

'https://secure.sosemploymentgroup.com/timesheet/'
Constantstring TIMESHEET_ROLE

SSO role for timesheet access

'WEB_TIME'
Constantinteger VISIBLE

Bitwise value for visible elements

1
Constantinteger ASSOCIATE

Bitwise value for elements created by associates

2
Constantinteger CLIENT

Bitwise value for elements created by clients

4
Constantinteger STAFF

Bitwise value for elements created by staff

8
Constantinteger INCOMPLETE

Bitwise value for incomplete timesheets

0
Constantinteger ASSOCIATE_SUBMITTED

Bitwise value for submitted timesheets

1
Constantinteger CLIENT_NOTIFIED

Bitwise value for submitted timesheets where the client has been notified

2
Constantinteger CLIENT_REVIEWED

Bitwise value for client reviewed timesheets

4
Constantinteger CLIENT_APPROVED

Bitwise value for client approved timesheets

8
Constantinteger STAFF_EXPORTED

Bitwise value for timesheets exported to SOAR

16
Constantinteger STAFF_INACTIVE

Bitwise value for inactive timesheets (typically paper-completed)

32
Constantinteger STAFF_EXPORT_HOLD

Bitwise value for when a timesheet is between sending the export data to SOAR and receiving a response

64
Constantinteger INVOICING_NOTIFIED

Bitwise value for when the invoicing department has been notified that the timesheet was exported

128
Constantinteger RETURN_ID

Bitwise value for returning timesheet ID

0
Constantinteger RETURN_DETAILS

Bitwise value for returning timesheet details

1
Constantinteger RETURN_ENTRIES

Bitwise value for returning timesheet entries

2
Constantinteger SHOW_WEEKS

Number of valid weeks to provide per assignment

3
Constantinteger REG_WK_HRS

Total regular-time hours per week

40
Constantinteger AK_OT_START

Hours after which Alaska starts calculating overtime

8
Constantinteger CA_OT_START

Hours after which California starts calculating overtime

8
Constantinteger CA_DT_START

Hours after which California starts calculating double time

12
Constantinteger OR_OT_START

Hours after which Oregon starts calculating overtime

10
Constantinteger PAGINATION_COUNT

Number of results returned per page

20
Constantinteger MINIMUM_PAGINATION_COUNT

Minimum number of results returned per page

10

Methods

methodpubliccalculateTotals

Calculates timesheet totals per day and as a whole

methodpubliccountTimesheets

Returns a count of all timesheets for the approver, optionally limited by status

methodpublicgetAllConstants

Returns all constants for the current service

methodpublicgetConstant

Returns a specific constant for the current service by name

methodpublicgetCustomerFields

Returns a list of timesheet entry types allowed by customer

methodpublicgetLocation

Returns location information from a customer number

methodpublicgetTimesheet

Will load an approver-accessible timesheet by an ID or assignment/week ending date. This method will only return timesheets that can by reviewed by the current user.

methodpubliclistTimesheets

Lists all timesheets that can be approved by the approver

methodpublicprintTimesheets

Returns a PDF representation of the selected timesheets

methodpublicreviewTimesheet

Submits an approver review for a timesheet

methodpublicsaveDetails

Saves details to an existing timesheet

methodpublicsaveEntries

Saves entries to an existing timesheet

methodpublicvalidateEntry

Validates a new entry, optionally checks against an existing list of entries

Documentation was generated by DocBlox 0.18.1.