UserDateTotalListFactory
extends UserDateTotalFactory
in package
implements
IteratorAggregate
Interfaces, Classes, Traits and Enums
- IteratorAggregate
Table of Contents
- $cache : Cache_Lite_Function|Cache_Lite_Output
- $calc_future_week : mixed
- $data : mixed
- $db : mixed
- $is_new : mixed
- $old_data : mixed
- $rs : mixed
- $tmp_data : mixed
- $validate_only : mixed
- $Validator : mixed
- $api_message_id : mixed
- $calc_system_total_time : mixed
- $enable_system_log_detail : mixed
- $job_item_obj : mixed
- $job_obj : mixed
- $json_columns : mixed
- $pay_code_obj : mixed
- $pay_period_obj : mixed
- $pk_sequence_name : mixed
- $progress_bar_obj : mixed
- $punch_control_obj : mixed
- $punch_tag_group_ids : mixed
- $table : mixed
- $timesheet_verification_check : mixed
- $user_obj : mixed
- $calc_accrual_policy : mixed
- $calc_exception : mixed
- $calc_weekly_system_total_time : mixed
- $ignore_column_list : bool
- $is_calculate_policy : mixed
- $is_partial_shift : mixed
- $is_valid : mixed
- $premature_exception : mixed
- __construct() : mixed
- Factory constructor.
- __toString() : bool|string
- Print primary columns from object.
- addLog() : bool
- bulkDelete() : bool
- calcAccumulatedTime() : array<string|int, mixed>|bool
- Takes UserDateTotal rows, and calculate the accumlated time sections
- calcSystemTotalTime() : bool
- calcTotalTime() : bool
- calcTotalTimeAmount() : string
- calcTotalTimeAmounts() : bool
- Calculates TotalTimeAmount and TotalTimeAmountWithBurden.
- calcTotalTimeAmountWithBurden() : string
- calcWeeklySystemTotalTime() : bool
- castGenericDataValue() : mixed
- Generic casting function that all set/get*() functions should pass through.
- clearCacheSavedInTransaction() : bool
- clearData() : bool
- clearGeoCode() : bool
- clearNonMappedData() : array<string|int, mixed>|null
- Removes array elements from $data that are not in the function map.
- clearOldData() : bool
- CommitSavePoint() : bool
- CommitTransaction() : mixed
- convertFlexArray() : array<string|int, mixed>
- decodeCustomFields() : bool
- decodeGenericJSONData() : bool
- Decode generic 'other_json' column data.
- decodeJSONColumn() : bool
- Decodes JSON columns that are not the 'other_json' column.
- Delete() : bool
- Deletes the record directly from the database.
- deleteByUserIdAndDateStampAndObjectTypeAndOverrideAndMisMatchPunchControlDateStamp() : bool|UserDateTotalListFactory
- encodeCustomFields() : bool
- encodeGenericJSONData() : bool
- Encode generic 'other_json' column data. This should only be done in Save() after all validation has occurred already and we are just about to commit it to the DB.
- encodeJSONColumns() : bool
- Encode any JSON columns that are not 'other_json' column. This should only be done in Save() after all validation has occurred already and we are just about to commit it to the DB.
- ExecuteSQL() : bool
- Execute SQL queries and handle paging properly for select statements.
- FailTransaction() : mixed
- fromBool() : bool
- fromJSONBool() : bool
- getAbsenceTimeSumByUserIDAndAbsenceIDAndStartDateAndEndDate() : bool|int
- getAccrualOrphansByUserIdAndPayCodeIdAndAccrualPolicyAccountIdAndStartDateAndEndDate() : bool|UserDateTotalListFactory
- getActualTotalTime() : bool|int
- getAffectedRows() : int|bool
- getAffordableCareReportByCompanyIdAndArrayCriteria() : $this
- getAll() : $this
- getAPIMessageID() : bool|null
- Used for updating progress bar for API calls.
- getAPISearchByCompanyIdAndArrayCriteria() : bool|UserDateTotalListFactory
- getBadQuantity() : bool|float
- getBaseHourlyRate() : bool|mixed
- This the base hourly rate used to obtain the final hourly rate from. Primarily used for FLSA calculations when adding overtime wages.
- getBranch() : bool|mixed
- getByCompanyId() : bool|UserDateTotalListFactory
- getByCompanyIDAndUserIdAndObjectTypeAndStartDateAndEndDate() : bool|UserDateTotalListFactory
- getById() : bool|UserDateTotalListFactory
- getByIDAndCompanyId() : bool|UserDateTotalListFactory
- getByPayCodeId() : bool|UserDateTotalListFactory
- getByUserIdAndDateStampAndObjectType() : bool|UserDateTotalListFactory
- getByUserIdAndDateStampAndObjectTypeAndPayCodeIdAndOverride() : bool|UserDateTotalListFactory
- getByUserIdAndDateStampAndObjectTypeAndPunchControlIdAndOverride() : bool|UserDateTotalListFactory
- getByUserIdAndDateStampAndObjectTypeAndSrcObjectAndPayCodeAndBranchAndDepartmentAndJobAndJobItemOverride() : bool|UserDateTotalListFactory
- getByUserIdAndDateStampAndOldDateStampAndPunchControlId() : bool|UserDateTotalListFactory
- getByUserIdAndPayPeriodIdAndEndDate() : bool|UserDateTotalListFactory
- getByUserIdAndStartDateAndEndDateAndExcludeId() : bool|UserDateTotalListFactory
- getCache() : bool|mixed
- getColumn() : bool|mixed
- Generic function get any data from the data array.
- getColumnList() : array<string|int, mixed>|bool
- getCompanyGenericMapData() : mixed
- Generic function to return and cache CompanyGenericMap data, this greatly improves performance of CalculatePolicy when many policies exist.
- getCreatedAndUpdatedColumns() : bool
- getCreatedBy() : bool|mixed
- getCreatedDate() : int
- getCurrency() : bool|mixed
- getCurrencyRate() : bool|mixed
- getCurrent() : mixed
- Grabs the current object
- getCurrentRow() : int|bool
- getCustomField() : void
- Get a single custom field by ID.
- getCustomFields() : mixed
- getCustomFieldsColumns() : array<string|int, mixed>
- getCustomFieldsDataForObject() : array<string|int, mixed>
- Get custom field data for this specific object, so it can be easily cached in memory without having to go to the database or unserialize it from cache for every row.
- getCustomFieldsDefaultData() : mixed
- getCustomFieldsParseHints() : array<string|int, mixed>
- getCustomFieldTableName() : string
- getDataDifferences() : array<string|int, mixed>
- Returns the differences in data from the DB vs the in-memory object, so the data will be the OLD data. Used in Validation/postSave() functions to determine if a field has changed or not.
- getDateRangeSQL() : bool|string
- This function takes plain input from the user and creates a SQL statement for filtering based on a date range.
- getDateStamp() : bool|int
- getDaysPaidAbsenceByUserIDAndStartDateAndEndDate() : bool
- Finds number of days the employee received paid absence time.
- getDaysWorkedByUserIDAndDateStamps() : bool|int
- getDaysWorkedByUserIDAndStartDateAndEndDate() : bool
- getDaysWorkedRegularTimeByUserIDAndStartDateAndEndDate() : bool
- getDeleted() : bool
- getDeletedBy() : bool|mixed
- getDeletedDate() : bool|mixed
- getDepartment() : bool|mixed
- getEmptyRecordSet() : mixed
- getEnableCalcAccrualPolicy() : bool
- getEnableCalcException() : bool
- getEnableCalcFutureWeek() : bool
- getEnableCalcSystemTotalTime() : bool
- getEnableCalculatePolicy() : bool
- getEnableCalcWeeklySystemTotalTime() : bool
- getEnablePreMatureException() : bool
- getEnableSystemLogDetail() : bool
- getEnableTimeSheetVerificationCheck() : bool
- getEndTimeStamp() : bool
- getEndType() : bool|int
- getGeneralLedgerReportByCompanyIdAndArrayCriteria() : $this
- getGenericDataValue() : bool|mixed
- Generic getter/setter functions that should be used when Validation code is moved from get/set functions to Validate() function.
- getGenericJSONDataValue() : bool|mixed
- Generic getter/setter functions for handling generic JSON data in 'other_json' SQL column.
- getGenericObject() : object|bool
- Generic function to return and cache class objects ListFactory, ListFactoryMethod, Variable, ID, IDMethod
- getGenericOldDataValue() : bool|mixed
- getGenericTempDataValue() : bool
- Generic getter/setter functions that should be used when Validation code is moved from get/set functions to Validate() function.
- getHourlyRate() : bool|mixed
- getHourlyRateWithBurden() : bool|mixed
- getId() : bool|mixed
- getIDSByListFactory() : array<string|int, mixed>|bool
- getIsPartialShift() : bool
- getIterator() : FactoryListIterator
- getJob() : bool|mixed
- getJobDetailReportByCompanyIdAndArrayCriteria() : $this
- getJobItem() : bool|mixed
- getJobItemObject() : bool
- getJobObject() : bool
- getLabelId() : bool|mixed|string
- getLastByUserIdAndObjectTypeOrAbsencePolicy() : bool|UserDateTotalListFactory
- getMidDayExceptionsByStartDateAndEndDateAndPayPeriodStatus() : bool|UserDateTotalListFactory
- Used by calcQuickExceptions maintenance job to speed up finding days that need to have exceptions calculated throughout the day.
- getName() : bool|string
- getNextByUserIdAndObjectTypeAndEpoch() : bool|UserDateTotalListFactory
- getNextInsertId() : bool|string
- getNote() : bool|mixed
- getObjectAsArray() : array<string|int, mixed>
- getObjectType() : bool|int
- getOldDateStamp() : bool
- getOptions() : array<string|int, mixed>|bool
- getOverride() : bool
- getPaidAbsenceTimeSumByUserIDAndStartDateAndEndDate() : bool|int
- getPayCode() : bool|mixed
- getPayCodeObject() : bool
- getPayPeriod() : bool|mixed
- getPayPeriodObject() : bool
- getPermissionColumns() : bool
- getProgressBarObject() : null|ProgressBar
- getPunchControlID() : bool|mixed
- getPunchControlObject() : bool
- getPunchTag() : array<string|int, mixed>|bool
- getPunchTagGroupIds() : array<string|int, mixed>
- getPunchTagObjects() : bool|array<string|int, mixed>
- getQuantity() : bool|float
- getRecordCount() : int|bool
- getRegularTimeSumByUserIDAndStartDateAndEndDate() : bool|int
- getReportByStartDateAndEndDateAndJobList() : bool|UserDateTotalListFactory
- getSequenceName() : bool
- getSourceObject() : bool|mixed
- getSourceObjectListFactory() : bool|object
- getSourceObjectObject() : bool
- getStartTimeStamp() : int|bool
- getStartType() : bool|int
- getStatus() : int
- getSumByUserIDAndObjectTypeIDAndPayCodeIDAndStartDateAndEndDate() : bool
- getTable() : bool|string
- getTimeCategory() : array<string|int, mixed>
- Returns an array of time categories that the object_type fits in.
- getTimesheetDetailReportByCompanyIdAndArrayCriteria() : $this
- getTimesheetSummaryReportByCompanyIdAndArrayCriteria() : $this
- getTotalByPayPeriodIdAndObjectTypeAndOverride() : bool|int
- getTotalSumByUserIdAndDateStamp() : bool|int
- getTotalSumByUserIdAndDateStampAndObjectType() : bool|int
- getTotalTime() : bool|int
- getTotalTimeAmount() : bool|mixed
- getTotalTimeAmountWithBurden() : bool|mixed
- getTotalTimeSumByUserIDAndPayCodeIDAndStartDateAndEndDate() : bool|int
- getTransactionMode() : string
- getType() : bool|int
- getUpdatedBy() : bool|mixed
- getUpdatedDate() : int
- getUser() : mixed
- getUserObject() : UserFactory|bool
- getValidSQLColumns() : array<string|int, mixed>
- getVariableToFunctionMap() : array<string|int, mixed>|bool
- getWeekRegularTimeSumByUserIDAndEpochAndStartWeekEpoch() : bool|int
- getWeekWorkedTimeSumByUserIDAndEpochAndStartWeekEpoch() : bool|int
- Make sure we take into account auto-deduct/add meal/break policies.
- getWorkedTimeSumByUserIDAndPayPeriodId() : bool|int
- getWorkedTimeSumByUserIDAndStartDateAndEndDate() : bool|int
- This isn't JUST worked time, it also includes paid lunch/break time. Specifically in auto-deduct cases where they work 8.5hrs and only get paid for 8hrs due to auto-deduct lunch or breaks.
- getWorkedUsersByPayPeriodId() : bool|int
- handleSaveSQLReturning() : bool
- Used to handle any "RETURNING ..." clause on a SQL INSERT/UPDATE query.
- hasDataChanged() : bool
- Determine if the record data has changed at all.
- isClientFriendly() : bool
- Check if the remote client is our main UI app controlled by us, vs. a user utilizing the API for example.
- isDataDifferent() : bool
- Used to check the differences between a single key in the $old_data vs. $data arrays.
- isNew() : bool
- Determines if the data is new data, or updated data. Basically determines if a database INSERT or UPDATE SQL statement is generated.
- isSQLExceptionRetryable() : bool
- Determines if a SQL exception is one that can be retried or not.
- isValid() : bool
- Call class specific validation function just before saving.
- isWarning() : bool
- Call class specific validation function just before saving.
- modifyInsertQuery() : mixed
- Modifies the automatically generated SQL INSERT query for adding things like " ON CONFLICT ..."
- parseCustomFieldsFromArray() : mixed
- postSave() : bool
- preValidate() : bool
- reCalculateDay() : bool
- removeCache() : bool
- RetryTransaction() : mixed
- Accepts a Closure and is retried at set intervals which should be in a transaction.
- rewind() : bool
- Rewinds record set iterator to begining. The same as ADODB's MoveFirst() function.
- RollbackSavePoint() : bool
- Save() : bool|int|string
- Determines to insert or update, and does it.
- saveCache() : bool
- serializeRS() : string
- Serialize ADODB recordset.
- setActualTotalTime() : bool
- setAPIMessageID() : bool
- setBadQuantity() : bool
- setBaseHourlyRate() : bool
- setBranch() : bool
- setCacheLifeTime() : bool
- setCreatedAndUpdatedColumns() : bool
- setCreatedBy() : bool
- setCreatedDate() : bool
- setCurrency() : bool
- setCurrencyRate() : bool
- Currency exchange rate to convert the amount back to the base currency. Rate=1 would usually only happen if the current currency is the base currency.
- setCustomField() : void
- Set a single custom field by ID.
- setCustomFields() : bool
- setDateStamp() : bool
- setDeleted() : bool
- setDeletedBy() : bool|null
- setDeletedDate() : bool
- setDepartment() : bool
- setEnableCalcAccrualPolicy() : bool
- setEnableCalcException() : bool
- setEnableCalcFutureWeek() : bool
- setEnableCalcSystemTotalTime() : bool
- setEnableCalculatePolicy() : bool
- setEnableCalcWeeklySystemTotalTime() : bool
- setEnablePreMatureException() : bool
- setEnableSystemLogDetail() : bool
- setEnableTimeSheetVerificationCheck() : bool
- setEndTimeStamp() : bool
- setEndType() : bool
- setGenericDataValue() : bool
- setGenericJSONDataValue() : bool
- Generic getter/setter functions for handling generic JSON data in 'other_json' SQL column.
- setGenericObject() : bool
- Allow method to pre-populate/overwrite the cache if needed.
- setGenericTempDataValue() : bool
- setHourlyRate() : bool
- setHourlyRateWithBurden() : bool
- setId() : bool
- setIsPartialShift() : bool
- setIsValid() : bool
- Sets the is_valid flag, mostly used to set it to FALSE to force a full re-validation.
- setJob() : bool
- setJobItem() : bool
- setNote() : bool
- setObjectFromArray() : bool
- setObjectType() : bool
- setOldDateStamp() : bool
- setOverride() : bool
- setPayCode() : bool
- setPayPeriod() : bool
- setProgressBarObject() : bool
- setPunchControlID() : bool
- setPunchTag() : bool
- setQuantity() : bool
- setQueryStatementTimeout() : bool
- setSourceObject() : bool
- setStartTimeStamp() : bool
- setStartType() : bool
- setTotalTime() : bool
- setTotalTimeAmount() : bool
- setTotalTimeAmountWithBurden() : bool
- setTransactionMode() : mixed
- setUpdatedBy() : bool|null
- setUpdatedDate() : bool|int|null|string
- setUser() : bool
- sortAccumulatedTimeByOrder() : int
- StartSavePoint() : bool
- StartTransaction() : mixed
- toBool() : int
- toJSONBool() : string
- Validate() : bool
- validateCustomFields() : mixed
- _getFactoryOptions() : bool
- _getVariableToFunctionMap() : bool
- castInteger() : bool|int|string
- getColumnsFromAliases() : array<string|int, mixed>
- getCustomFieldWhereSQL() : string
- getDatabaseType() : string
- getListSQL() : bool|int|string|array<string|int, mixed>
- getSortSQL() : bool|string
- getSQLStringAggregate() : string
- getSQLToEpochFunction() : string
- getSQLToTimeFunction() : string
- getSQLToTimeStampFunction() : string
- getWhereClauseSQL() : null|string
- getWhereSQL() : bool|string
- handleSQLSyntax() : string
- SQL where clause Syntax: or % as wildcard.
- stripSQLSyntax() : mixed
- getInsertQuery() : mixed
- getRecordSetColumnList() : array<string|int, mixed>|bool
- getUpdateQuery() : bool
- parseColumnName() : bool|string
- Parses out the exact column name, without any aliases, or = signs in it.
Properties
$cache
public
Cache_Lite_Function|Cache_Lite_Output
$cache
= \null
$calc_future_week
public
static mixed
$calc_future_week
= \false
$data
public
mixed
$data
= []
$db
public
mixed
$db
= \null
$is_new
public
mixed
$is_new
= \null
$old_data
public
mixed
$old_data
= []
$rs
public
mixed
$rs
= \null
$tmp_data
public
mixed
$tmp_data
= []
$validate_only
public
mixed
$validate_only
= \false
$Validator
public
mixed
$Validator
= \null
$api_message_id
protected
mixed
$api_message_id
= \null
$calc_system_total_time
protected
mixed
$calc_system_total_time
= \false
$enable_system_log_detail
protected
mixed
$enable_system_log_detail
= \true
$job_item_obj
protected
mixed
$job_item_obj
= \null
$job_obj
protected
mixed
$job_obj
= \null
$json_columns
protected
mixed
$json_columns
= ['punch_tag_id']
$pay_code_obj
protected
mixed
$pay_code_obj
= \null
$pay_period_obj
protected
mixed
$pay_period_obj
= \null
$pk_sequence_name
protected
mixed
$pk_sequence_name
= 'user_date_total_id_seq'
$progress_bar_obj
protected
mixed
$progress_bar_obj
= \null
$punch_control_obj
protected
mixed
$punch_control_obj
= \null
$punch_tag_group_ids
protected
mixed
$punch_tag_group_ids
= \null
$table
protected
mixed
$table
= 'user_date_total'
$timesheet_verification_check
protected
mixed
$timesheet_verification_check
= \false
$user_obj
protected
mixed
$user_obj
= \null
$calc_accrual_policy
private
mixed
$calc_accrual_policy
$calc_exception
private
mixed
$calc_exception
$calc_weekly_system_total_time
private
mixed
$calc_weekly_system_total_time
$ignore_column_list
private
bool
$ignore_column_list
$is_calculate_policy
private
mixed
$is_calculate_policy
$is_partial_shift
private
mixed
$is_partial_shift
$is_valid
private
mixed
$is_valid
= \false
$premature_exception
private
mixed
$premature_exception
Methods
__construct()
Factory constructor.
public
__construct() : mixed
Return values
mixed —__toString()
Print primary columns from object.
public
__toString() : bool|string
Return values
bool|string —addLog()
public
addLog( $log_action) : bool
Parameters
Return values
bool —bulkDelete()
public
bulkDelete(string|array<string|int, mixed> $ids) : bool
Parameters
- $ids : string|array<string|int, mixed>
-
UUID
Tags
Return values
bool —calcAccumulatedTime()
Takes UserDateTotal rows, and calculate the accumlated time sections
public
static calcAccumulatedTime( $data[, bool $include_daily_totals = true ]) : array<string|int, mixed>|bool
Parameters
Return values
array<string|int, mixed>|bool —calcSystemTotalTime()
public
calcSystemTotalTime() : bool
Return values
bool —calcTotalTime()
public
calcTotalTime() : bool
Return values
bool —calcTotalTimeAmount()
public
calcTotalTimeAmount() : string
Return values
string —calcTotalTimeAmounts()
Calculates TotalTimeAmount and TotalTimeAmountWithBurden.
public
calcTotalTimeAmounts() : bool
Return values
bool —calcTotalTimeAmountWithBurden()
public
calcTotalTimeAmountWithBurden() : string
Return values
string —calcWeeklySystemTotalTime()
public
calcWeeklySystemTotalTime() : bool
Return values
bool —castGenericDataValue()
Generic casting function that all set/get*() functions should pass through.
public
castGenericDataValue( &$value, $cast) : mixed
However for now lets wait until we have meta data from SQL schema so we can pass those datatypes directly into this.
Parameters
Return values
mixed —clearCacheSavedInTransaction()
public
clearCacheSavedInTransaction() : bool
Return values
bool —clearData()
public
clearData() : bool
Return values
bool —clearGeoCode()
public
clearGeoCode([array<string|int, mixed> $data_diff = null ]) : bool
Parameters
- $data_diff : array<string|int, mixed> = null
Return values
bool —clearNonMappedData()
Removes array elements from $data that are not in the function map.
public
clearNonMappedData([array<string|int, mixed>|null $data = null ]) : array<string|int, mixed>|null
Parameters
- $data : array<string|int, mixed>|null = null
Return values
array<string|int, mixed>|null —clearOldData()
public
clearOldData() : bool
Return values
bool —CommitSavePoint()
public
CommitSavePoint( $name) : bool
Parameters
Return values
bool —CommitTransaction()
public
CommitTransaction([bool $unnest_transactions = false ]) : mixed
Parameters
- $unnest_transactions : bool = false
Tags
Return values
mixed —convertFlexArray()
public
convertFlexArray(array<string|int, mixed> $array) : array<string|int, mixed>
Parameters
- $array : array<string|int, mixed>
Return values
array<string|int, mixed> —decodeCustomFields()
public
decodeCustomFields() : bool
Return values
bool —decodeGenericJSONData()
Decode generic 'other_json' column data.
public
decodeGenericJSONData() : bool
Return values
bool —decodeJSONColumn()
Decodes JSON columns that are not the 'other_json' column.
public
decodeJSONColumn( $column) : bool
Parameters
Return values
bool —Delete()
Deletes the record directly from the database.
public
Delete([bool $disable_audit_log = false ]) : bool
Parameters
- $disable_audit_log : bool = false
Tags
Return values
bool —deleteByUserIdAndDateStampAndObjectTypeAndOverrideAndMisMatchPunchControlDateStamp()
public
deleteByUserIdAndDateStampAndObjectTypeAndOverrideAndMisMatchPunchControlDateStamp(string $user_id, int $date_stamp, int|array<string|int, int> $object_type_id[, bool $override = false ]) : bool|UserDateTotalListFactory
Parameters
- $user_id : string
-
UUID
- $date_stamp : int
-
EPOCH
- $object_type_id : int|array<string|int, int>
- $override : bool = false
Return values
bool|UserDateTotalListFactory —encodeCustomFields()
public
encodeCustomFields() : bool
Return values
bool —encodeGenericJSONData()
Encode generic 'other_json' column data. This should only be done in Save() after all validation has occurred already and we are just about to commit it to the DB.
public
encodeGenericJSONData() : bool
Return values
bool —encodeJSONColumns()
Encode any JSON columns that are not 'other_json' column. This should only be done in Save() after all validation has occurred already and we are just about to commit it to the DB.
public
encodeJSONColumns() : bool
Return values
bool —ExecuteSQL()
Execute SQL queries and handle paging properly for select statements.
public
ExecuteSQL(string $query[, array<string|int, mixed> $ph = null ][, int $limit = null ][, int $page = null ]) : bool
Parameters
- $query : string
- $ph : array<string|int, mixed> = null
- $limit : int = null
-
Limit the number of records returned
- $page : int = null
-
Page number of records to return for pagination
Tags
Return values
bool —FailTransaction()
public
FailTransaction() : mixed
Return values
mixed —fromBool()
public
fromBool(string|int|bool $value) : bool
Parameters
- $value : string|int|bool
Return values
bool —fromJSONBool()
public
fromJSONBool(string|int|bool $value) : bool
Parameters
- $value : string|int|bool
Return values
bool —getAbsenceTimeSumByUserIDAndAbsenceIDAndStartDateAndEndDate()
public
getAbsenceTimeSumByUserIDAndAbsenceIDAndStartDateAndEndDate(string $user_id, string $absence_policy_id, int $start_date, int $end_date) : bool|int
Parameters
- $user_id : string
-
UUID
- $absence_policy_id : string
-
UUID
- $start_date : int
-
EPOCH
- $end_date : int
-
EPOCH
Return values
bool|int —getAccrualOrphansByUserIdAndPayCodeIdAndAccrualPolicyAccountIdAndStartDateAndEndDate()
public
getAccrualOrphansByUserIdAndPayCodeIdAndAccrualPolicyAccountIdAndStartDateAndEndDate(string $user_id, string $pay_code_id, string $accrual_policy_account_id, int $start_date, int $end_date[, array<string|int, mixed> $where = null ][, array<string|int, mixed> $order = null ]) : bool|UserDateTotalListFactory
Parameters
- $user_id : string
-
UUID
- $pay_code_id : string
-
UUID
- $accrual_policy_account_id : string
-
UUID
- $start_date : int
-
EPOCH
- $end_date : int
-
EPOCH
- $where : array<string|int, mixed> = null
-
Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Return values
bool|UserDateTotalListFactory —getActualTotalTime()
public
getActualTotalTime() : bool|int
Return values
bool|int —getAffectedRows()
public
getAffectedRows() : int|bool
Return values
int|bool —getAffordableCareReportByCompanyIdAndArrayCriteria()
public
getAffordableCareReportByCompanyIdAndArrayCriteria(string $company_id, $filter_data, $type[, int $limit = null ][, int $page = null ][, array<string|int, mixed> $where = null ][, array<string|int, mixed> $order = null ]) : $this
Parameters
- $company_id : string
-
UUID
- $filter_data :
- $type :
- $limit : int = null
-
Limit the number of records returned
- $page : int = null
-
Page number of records to return for pagination
- $where : array<string|int, mixed> = null
-
Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Return values
$this —getAll()
public
getAll([int $limit = null ][, int $page = null ][, array<string|int, mixed> $where = null ][, array<string|int, mixed> $order = null ]) : $this
Parameters
- $limit : int = null
-
Limit the number of records returned
- $page : int = null
-
Page number of records to return for pagination
- $where : array<string|int, mixed> = null
-
Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Return values
$this —getAPIMessageID()
Used for updating progress bar for API calls.
public
getAPIMessageID() : bool|null
Return values
bool|null —getAPISearchByCompanyIdAndArrayCriteria()
public
getAPISearchByCompanyIdAndArrayCriteria(string $company_id, $filter_data[, int $limit = null ][, int $page = null ][, array<string|int, mixed> $where = null ][, array<string|int, mixed> $order = null ]) : bool|UserDateTotalListFactory
Parameters
- $company_id : string
-
UUID
- $filter_data :
- $limit : int = null
-
Limit the number of records returned
- $page : int = null
-
Page number of records to return for pagination
- $where : array<string|int, mixed> = null
-
Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Return values
bool|UserDateTotalListFactory —getBadQuantity()
public
getBadQuantity() : bool|float
Return values
bool|float —getBaseHourlyRate()
This the base hourly rate used to obtain the final hourly rate from. Primarily used for FLSA calculations when adding overtime wages.
public
getBaseHourlyRate() : bool|mixed
Return values
bool|mixed —getBranch()
public
getBranch() : bool|mixed
Return values
bool|mixed —getByCompanyId()
public
getByCompanyId(string $id[, int $limit = null ][, int $page = null ][, array<string|int, mixed> $where = null ][, array<string|int, mixed> $order = null ]) : bool|UserDateTotalListFactory
Parameters
- $id : string
-
UUID
- $limit : int = null
-
Limit the number of records returned
- $page : int = null
-
Page number of records to return for pagination
- $where : array<string|int, mixed> = null
-
Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Return values
bool|UserDateTotalListFactory —getByCompanyIDAndUserIdAndObjectTypeAndStartDateAndEndDate()
public
getByCompanyIDAndUserIdAndObjectTypeAndStartDateAndEndDate(string $company_id, string $user_id, int|array<string|int, int> $object_type_id, int $start_date, int $end_date[, int $limit = null ]) : bool|UserDateTotalListFactory
Parameters
- $company_id : string
-
UUID
- $user_id : string
-
UUID
- $object_type_id : int|array<string|int, int>
- $start_date : int
-
EPOCH
- $end_date : int
-
EPOCH
- $limit : int = null
-
Limit the number of records returned
Tags
Return values
bool|UserDateTotalListFactory —getById()
public
getById(string $id[, array<string|int, mixed> $where = null ][, array<string|int, mixed> $order = null ]) : bool|UserDateTotalListFactory
Parameters
- $id : string
-
UUID
- $where : array<string|int, mixed> = null
-
Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Return values
bool|UserDateTotalListFactory —getByIDAndCompanyId()
public
getByIDAndCompanyId(string $id, string $company_id[, int $limit = null ][, int $page = null ][, array<string|int, mixed> $where = null ][, array<string|int, mixed> $order = null ]) : bool|UserDateTotalListFactory
Parameters
- $id : string
-
UUID
- $company_id : string
-
UUID
- $limit : int = null
-
Limit the number of records returned
- $page : int = null
-
Page number of records to return for pagination
- $where : array<string|int, mixed> = null
-
Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Return values
bool|UserDateTotalListFactory —getByPayCodeId()
public
getByPayCodeId(string $pay_code_id[, int $limit = null ][, array<string|int, mixed> $where = null ][, array<string|int, mixed> $order = null ]) : bool|UserDateTotalListFactory
Parameters
- $pay_code_id : string
-
UUID
- $limit : int = null
-
Limit the number of records returned
- $where : array<string|int, mixed> = null
-
Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Return values
bool|UserDateTotalListFactory —getByUserIdAndDateStampAndObjectType()
public
getByUserIdAndDateStampAndObjectType(string $user_id, int $date_stamp, int|array<string|int, int> $object_type_id[, int $limit = null ][, int $page = null ][, array<string|int, mixed> $where = null ][, array<string|int, mixed> $order = null ]) : bool|UserDateTotalListFactory
Parameters
- $user_id : string
-
UUID
- $date_stamp : int
-
EPOCH
- $object_type_id : int|array<string|int, int>
- $limit : int = null
-
Limit the number of records returned
- $page : int = null
-
Page number of records to return for pagination
- $where : array<string|int, mixed> = null
-
Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Return values
bool|UserDateTotalListFactory —getByUserIdAndDateStampAndObjectTypeAndPayCodeIdAndOverride()
public
getByUserIdAndDateStampAndObjectTypeAndPayCodeIdAndOverride(string $user_id, int $date_stamp, $object_type, string $pay_code_id[, bool $override = false ][, array<string|int, mixed> $order = null ]) : bool|UserDateTotalListFactory
Parameters
- $user_id : string
-
UUID
- $date_stamp : int
-
EPOCH
- $object_type :
- $pay_code_id : string
-
UUID
- $override : bool = false
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Return values
bool|UserDateTotalListFactory —getByUserIdAndDateStampAndObjectTypeAndPunchControlIdAndOverride()
public
getByUserIdAndDateStampAndObjectTypeAndPunchControlIdAndOverride(string $user_id, int $date_stamp, $object_type, string $punch_control_id[, bool $override = false ][, array<string|int, mixed> $order = null ]) : bool|UserDateTotalListFactory
Parameters
- $user_id : string
-
UUID
- $date_stamp : int
-
EPOCH
- $object_type :
- $punch_control_id : string
-
UUID
- $override : bool = false
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Return values
bool|UserDateTotalListFactory —getByUserIdAndDateStampAndObjectTypeAndSrcObjectAndPayCodeAndBranchAndDepartmentAndJobAndJobItemOverride()
public
getByUserIdAndDateStampAndObjectTypeAndSrcObjectAndPayCodeAndBranchAndDepartmentAndJobAndJobItemOverride(string $user_id, int $date_stamp, $object_type, string $src_object_id, string $pay_code_id, string $branch_id, string $department_id, string $job_id, string $job_item_id[, bool $override = false ][, array<string|int, mixed> $order = null ]) : bool|UserDateTotalListFactory
Parameters
- $user_id : string
-
UUID
- $date_stamp : int
-
EPOCH
- $object_type :
- $src_object_id : string
-
UUID
- $pay_code_id : string
-
UUID
- $branch_id : string
-
UUID
- $department_id : string
-
UUID
- $job_id : string
-
UUID
- $job_item_id : string
-
UUID
- $override : bool = false
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Return values
bool|UserDateTotalListFactory —getByUserIdAndDateStampAndOldDateStampAndPunchControlId()
public
getByUserIdAndDateStampAndOldDateStampAndPunchControlId(string $user_id, int $date_stamp, int $old_date_stamp, string $punch_control_id) : bool|UserDateTotalListFactory
Parameters
- $user_id : string
-
UUID
- $date_stamp : int
-
EPOCH
- $old_date_stamp : int
-
EPOCH
- $punch_control_id : string
-
UUID
Return values
bool|UserDateTotalListFactory —getByUserIdAndPayPeriodIdAndEndDate()
public
getByUserIdAndPayPeriodIdAndEndDate(string $user_id, string $pay_period_id[, int $end_date = null ]) : bool|UserDateTotalListFactory
Parameters
- $user_id : string
-
UUID
- $pay_period_id : string
-
UUID
- $end_date : int = null
-
EPOCH
Return values
bool|UserDateTotalListFactory —getByUserIdAndStartDateAndEndDateAndExcludeId()
public
getByUserIdAndStartDateAndEndDateAndExcludeId(string $user_id, int $start_date, int $end_date, mixed $exclude_id[, array<string|int, mixed> $where = null ][, array<string|int, mixed> $order = null ]) : bool|UserDateTotalListFactory
Parameters
- $user_id : string
-
UUID
- $start_date : int
-
EPOCH
- $end_date : int
-
EPOCH
- $exclude_id : mixed
- $where : array<string|int, mixed> = null
-
Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Tags
Return values
bool|UserDateTotalListFactory —getCache()
public
getCache(string $cache_id[, string $group_id = null ]) : bool|mixed
Parameters
- $cache_id : string
- $group_id : string = null
Return values
bool|mixed —getColumn()
Generic function get any data from the data array.
public
getColumn(string $column) : bool|mixed
Used mainly for the reports that return grouped queries and such.
Parameters
- $column : string
Return values
bool|mixed —getColumnList()
public
getColumnList() : array<string|int, mixed>|bool
Return values
array<string|int, mixed>|bool —getCompanyGenericMapData()
Generic function to return and cache CompanyGenericMap data, this greatly improves performance of CalculatePolicy when many policies exist.
public
getCompanyGenericMapData(string $company_id, int $object_type_id, string $id, string $variable) : mixed
Parameters
- $company_id : string
-
UUID
- $object_type_id : int
- $id : string
-
UUID
- $variable : string
Return values
mixed —getCreatedAndUpdatedColumns()
public
getCreatedAndUpdatedColumns(array<string|int, mixed> &$data[, null $include_columns = null ]) : bool
Parameters
- $data : array<string|int, mixed>
- $include_columns : null = null
Return values
bool —getCreatedBy()
public
getCreatedBy() : bool|mixed
Return values
bool|mixed —getCreatedDate()
public
getCreatedDate() : int
Return values
int —getCurrency()
public
getCurrency() : bool|mixed
Return values
bool|mixed —getCurrencyRate()
public
getCurrencyRate() : bool|mixed
Return values
bool|mixed —getCurrent()
Grabs the current object
public
final getCurrent() : mixed
Return values
mixed —getCurrentRow()
public
getCurrentRow([int $offset = 1 ]) : int|bool
Parameters
- $offset : int = 1
Return values
int|bool —getCustomField()
Get a single custom field by ID.
public
getCustomField(string $id) : void
Parameters
- $id : string
-
UUID
Return values
void —getCustomFields()
public
getCustomFields( $company_id, $data[, $include_columns = null ]) : mixed
Parameters
Return values
mixed —getCustomFieldsColumns()
public
getCustomFieldsColumns(array<string|int, mixed> $columns, string $company_id[, bool $use_sort_prefix = true ][, string|null $table_name = null ]) : array<string|int, mixed>
Parameters
- $columns : array<string|int, mixed>
- $company_id : string
- $use_sort_prefix : bool = true
- $table_name : string|null = null
Return values
array<string|int, mixed> —getCustomFieldsDataForObject()
Get custom field data for this specific object, so it can be easily cached in memory without having to go to the database or unserialize it from cache for every row.
public
getCustomFieldsDataForObject( $company_id[, mixed $table_name = null ]) : array<string|int, mixed>
Parameters
Tags
Return values
array<string|int, mixed> —getCustomFieldsDefaultData()
public
getCustomFieldsDefaultData( $company_id, $data[, bool $get_all_fields = false ]) : mixed
Parameters
Return values
mixed —getCustomFieldsParseHints()
public
getCustomFieldsParseHints(array<string|int, mixed> $columns, string $company_id, string|null $table_name) : array<string|int, mixed>
Parameters
- $columns : array<string|int, mixed>
- $company_id : string
- $table_name : string|null
Return values
array<string|int, mixed> —getCustomFieldTableName()
public
getCustomFieldTableName() : string
Return values
string —getDataDifferences()
Returns the differences in data from the DB vs the in-memory object, so the data will be the OLD data. Used in Validation/postSave() functions to determine if a field has changed or not.
public
getDataDifferences() : array<string|int, mixed>
Return values
array<string|int, mixed> —getDateRangeSQL()
This function takes plain input from the user and creates a SQL statement for filtering based on a date range.
public
getDateRangeSQL(string $str, string $column[, string $format = 'epoch' ][, bool $include_blank_dates = false ]) : bool|string
Supported Syntax:
=01-Jan-09 <=01-Jan-09 <01-Jan-09 01-Jan-09 01-Jan-09 & <10-Jan-09
Parameters
- $str : string
- $column : string
- $format : string = 'epoch'
- $include_blank_dates : bool = false
Return values
bool|string —getDateStamp()
public
getDateStamp([bool $raw = false ]) : bool|int
Parameters
- $raw : bool = false
Return values
bool|int —getDaysPaidAbsenceByUserIDAndStartDateAndEndDate()
Finds number of days the employee received paid absence time.
public
getDaysPaidAbsenceByUserIDAndStartDateAndEndDate(string $user_id, int $start_date, int $end_date) : bool
Parameters
- $user_id : string
-
UUID
- $start_date : int
-
EPOCH
- $end_date : int
-
EPOCH
Return values
bool —getDaysWorkedByUserIDAndDateStamps()
public
getDaysWorkedByUserIDAndDateStamps(string $user_id, int $date_stamps) : bool|int
Parameters
- $user_id : string
-
UUID
- $date_stamps : int
-
EPOCH
Return values
bool|int —getDaysWorkedByUserIDAndStartDateAndEndDate()
public
getDaysWorkedByUserIDAndStartDateAndEndDate(string $user_id, int $start_date, int $end_date) : bool
Parameters
- $user_id : string
-
UUID
- $start_date : int
-
EPOCH
- $end_date : int
-
EPOCH
Return values
bool —getDaysWorkedRegularTimeByUserIDAndStartDateAndEndDate()
public
getDaysWorkedRegularTimeByUserIDAndStartDateAndEndDate(string $user_id, int $start_date, int $end_date) : bool
Parameters
- $user_id : string
-
UUID
- $start_date : int
-
EPOCH
- $end_date : int
-
EPOCH
Return values
bool —getDeleted()
public
getDeleted() : bool
Return values
bool —getDeletedBy()
public
getDeletedBy() : bool|mixed
Return values
bool|mixed —getDeletedDate()
public
getDeletedDate() : bool|mixed
Return values
bool|mixed —getDepartment()
public
getDepartment() : bool|mixed
Return values
bool|mixed —getEmptyRecordSet()
public
getEmptyRecordSet([string $id = null ]) : mixed
Parameters
- $id : string = null
-
UUID
Tags
Return values
mixed —getEnableCalcAccrualPolicy()
public
getEnableCalcAccrualPolicy() : bool
Return values
bool —getEnableCalcException()
public
getEnableCalcException() : bool
Return values
bool —getEnableCalcFutureWeek()
public
static getEnableCalcFutureWeek() : bool
Return values
bool —getEnableCalcSystemTotalTime()
public
getEnableCalcSystemTotalTime() : bool
Return values
bool —getEnableCalculatePolicy()
public
getEnableCalculatePolicy() : bool
Return values
bool —getEnableCalcWeeklySystemTotalTime()
public
getEnableCalcWeeklySystemTotalTime() : bool
Return values
bool —getEnablePreMatureException()
public
getEnablePreMatureException() : bool
Return values
bool —getEnableSystemLogDetail()
public
getEnableSystemLogDetail() : bool
Return values
bool —getEnableTimeSheetVerificationCheck()
public
getEnableTimeSheetVerificationCheck() : bool
Return values
bool —getEndTimeStamp()
public
getEndTimeStamp([bool $raw = false ]) : bool
Parameters
- $raw : bool = false
Return values
bool —getEndType()
public
getEndType() : bool|int
Return values
bool|int —getGeneralLedgerReportByCompanyIdAndArrayCriteria()
public
getGeneralLedgerReportByCompanyIdAndArrayCriteria(string $company_id, $filter_data[, int $limit = null ][, int $page = null ][, array<string|int, mixed> $where = null ][, array<string|int, mixed> $order = null ]) : $this
Parameters
- $company_id : string
-
UUID
- $filter_data :
- $limit : int = null
-
Limit the number of records returned
- $page : int = null
-
Page number of records to return for pagination
- $where : array<string|int, mixed> = null
-
Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Return values
$this —getGenericDataValue()
Generic getter/setter functions that should be used when Validation code is moved from get/set functions to Validate() function.
public
getGenericDataValue(string $name[, null $cast = null ]) : bool|mixed
Parameters
- $name : string
- $cast : null = null
Return values
bool|mixed —getGenericJSONDataValue()
Generic getter/setter functions for handling generic JSON data in 'other_json' SQL column.
public
getGenericJSONDataValue(string $name[, null $cast = null ]) : bool|mixed
Parameters
- $name : string
- $cast : null = null
Return values
bool|mixed —getGenericObject()
Generic function to return and cache class objects ListFactory, ListFactoryMethod, Variable, ID, IDMethod
public
getGenericObject(string $list_factory, string|int $id, string $variable[, string $list_factory_method = 'getById' ][, string $id_method = 'getID' ]) : object|bool
Parameters
- $list_factory : string
- $id : string|int
-
UUID
- $variable : string
- $list_factory_method : string = 'getById'
- $id_method : string = 'getID'
Return values
object|bool —getGenericOldDataValue()
public
getGenericOldDataValue(string $name) : bool|mixed
Parameters
- $name : string
-
Gets data value from old_data array, or the original value in the database, prior to any changes currently in memory.
Return values
bool|mixed —getGenericTempDataValue()
Generic getter/setter functions that should be used when Validation code is moved from get/set functions to Validate() function.
public
getGenericTempDataValue(string $name) : bool
Parameters
- $name : string
Return values
bool —getHourlyRate()
public
getHourlyRate() : bool|mixed
Return values
bool|mixed —getHourlyRateWithBurden()
public
getHourlyRateWithBurden() : bool|mixed
Return values
bool|mixed —getId()
public
getId() : bool|mixed
Return values
bool|mixed —getIDSByListFactory()
public
getIDSByListFactory(object $lf) : array<string|int, mixed>|bool
Parameters
- $lf : object
Return values
array<string|int, mixed>|bool —getIsPartialShift()
public
getIsPartialShift() : bool
Return values
bool —getIterator()
public
final getIterator() : FactoryListIterator
Return values
FactoryListIterator —getJob()
public
getJob() : bool|mixed
Return values
bool|mixed —getJobDetailReportByCompanyIdAndArrayCriteria()
public
getJobDetailReportByCompanyIdAndArrayCriteria(string $company_id, $filter_data[, int $limit = null ][, int $page = null ][, array<string|int, mixed> $where = null ][, array<string|int, mixed> $order = null ]) : $this
Parameters
- $company_id : string
-
UUID
- $filter_data :
- $limit : int = null
-
Limit the number of records returned
- $page : int = null
-
Page number of records to return for pagination
- $where : array<string|int, mixed> = null
-
Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Return values
$this —getJobItem()
public
getJobItem() : bool|mixed
Return values
bool|mixed —getJobItemObject()
public
getJobItemObject() : bool
Return values
bool —getJobObject()
public
getJobObject() : bool
Return values
bool —getLabelId()
public
getLabelId() : bool|mixed|string
Return values
bool|mixed|string —getLastByUserIdAndObjectTypeOrAbsencePolicy()
public
getLastByUserIdAndObjectTypeOrAbsencePolicy(string $user_id, int|array<string|int, int> $object_type_id[, string|array<string|int, string> $absence_policy_id = null ][, int $limit = null ][, int $page = null ][, array<string|int, mixed> $where = null ][, array<string|int, mixed> $order = null ]) : bool|UserDateTotalListFactory
Parameters
- $user_id : string
-
UUID
- $object_type_id : int|array<string|int, int>
- $absence_policy_id : string|array<string|int, string> = null
- $limit : int = null
-
Limit the number of records returned
- $page : int = null
-
Page number of records to return for pagination
- $where : array<string|int, mixed> = null
-
Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Tags
Return values
bool|UserDateTotalListFactory —getMidDayExceptionsByStartDateAndEndDateAndPayPeriodStatus()
Used by calcQuickExceptions maintenance job to speed up finding days that need to have exceptions calculated throughout the day.
public
getMidDayExceptionsByStartDateAndEndDateAndPayPeriodStatus(int $start_date, int $end_date, int|array<string|int, int> $pay_period_status_id[, bool $user_id = false ]) : bool|UserDateTotalListFactory
Parameters
- $start_date : int
-
EPOCH
- $end_date : int
-
EPOCH
- $pay_period_status_id : int|array<string|int, int>
- $user_id : bool = false
Return values
bool|UserDateTotalListFactory —getName()
public
getName() : bool|string
Return values
bool|string —getNextByUserIdAndObjectTypeAndEpoch()
public
getNextByUserIdAndObjectTypeAndEpoch(string $user_id, int|array<string|int, int> $object_type_id, int $date_stamp[, array<string|int, mixed> $order = null ]) : bool|UserDateTotalListFactory
Parameters
- $user_id : string
-
UUID
- $object_type_id : int|array<string|int, int>
- $date_stamp : int
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Tags
Return values
bool|UserDateTotalListFactory —getNextInsertId()
public
getNextInsertId() : bool|string
Return values
bool|string —getNote()
public
getNote() : bool|mixed
Return values
bool|mixed —getObjectAsArray()
public
getObjectAsArray([null $include_columns = null ][, bool $permission_children_ids = false ]) : array<string|int, mixed>
Parameters
- $include_columns : null = null
- $permission_children_ids : bool = false
Return values
array<string|int, mixed> —getObjectType()
public
getObjectType() : bool|int
Return values
bool|int —getOldDateStamp()
public
getOldDateStamp() : bool
Return values
bool —getOptions()
public
getOptions(string $name[, string|int $parent = null ]) : array<string|int, mixed>|bool
Parameters
- $name : string
- $parent : string|int = null
Return values
array<string|int, mixed>|bool —getOverride()
public
getOverride() : bool
Return values
bool —getPaidAbsenceTimeSumByUserIDAndStartDateAndEndDate()
public
getPaidAbsenceTimeSumByUserIDAndStartDateAndEndDate(string $user_id, int $start_date, int $end_date) : bool|int
Parameters
- $user_id : string
-
UUID
- $start_date : int
-
EPOCH
- $end_date : int
-
EPOCH
Return values
bool|int —getPayCode()
public
getPayCode() : bool|mixed
Return values
bool|mixed —getPayCodeObject()
public
getPayCodeObject() : bool
Return values
bool —getPayPeriod()
public
getPayPeriod() : bool|mixed
Return values
bool|mixed —getPayPeriodObject()
public
getPayPeriodObject() : bool
Return values
bool —getPermissionColumns()
public
getPermissionColumns(array<string|int, mixed> &$data, string $object_user_id, string $created_by_id[, string $permission_children_ids = null ][, array<string|int, mixed> $include_columns = null ]) : bool
Parameters
- $data : array<string|int, mixed>
- $object_user_id : string
-
UUID
- $created_by_id : string
-
UUID
- $permission_children_ids : string = null
-
UUID
- $include_columns : array<string|int, mixed> = null
Return values
bool —getProgressBarObject()
public
getProgressBarObject() : null|ProgressBar
Return values
null|ProgressBar —getPunchControlID()
public
getPunchControlID() : bool|mixed
Return values
bool|mixed —getPunchControlObject()
public
getPunchControlObject() : bool
Return values
bool —getPunchTag()
public
getPunchTag() : array<string|int, mixed>|bool
Return values
array<string|int, mixed>|bool —getPunchTagGroupIds()
public
getPunchTagGroupIds() : array<string|int, mixed>
Return values
array<string|int, mixed> —getPunchTagObjects()
public
getPunchTagObjects() : bool|array<string|int, mixed>
Return values
bool|array<string|int, mixed> —getQuantity()
public
getQuantity() : bool|float
Return values
bool|float —getRecordCount()
public
getRecordCount() : int|bool
Return values
int|bool —getRegularTimeSumByUserIDAndStartDateAndEndDate()
public
getRegularTimeSumByUserIDAndStartDateAndEndDate(string $user_id, int $start_date, int $end_date) : bool|int
Parameters
- $user_id : string
-
UUID
- $start_date : int
-
EPOCH
- $end_date : int
-
EPOCH
Return values
bool|int —getReportByStartDateAndEndDateAndJobList()
public
getReportByStartDateAndEndDateAndJobList(mixed $filter_data, string|array<string|int, string> $job_ids[, array<string|int, mixed> $order = null ]) : bool|UserDateTotalListFactory
Parameters
- $filter_data : mixed
- $job_ids : string|array<string|int, string>
-
UUID
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Return values
bool|UserDateTotalListFactory —getSequenceName()
public
getSequenceName() : bool
Return values
bool —getSourceObject()
public
getSourceObject() : bool|mixed
Return values
bool|mixed —getSourceObjectListFactory()
public
getSourceObjectListFactory(int $object_type_id) : bool|object
Parameters
- $object_type_id : int
Return values
bool|object —getSourceObjectObject()
public
getSourceObjectObject() : bool
Return values
bool —getStartTimeStamp()
public
getStartTimeStamp([bool $raw = false ]) : int|bool
Parameters
- $raw : bool = false
Return values
int|bool —getStartType()
public
getStartType() : bool|int
Return values
bool|int —getStatus()
public
getStatus() : int
Return values
int —getSumByUserIDAndObjectTypeIDAndPayCodeIDAndStartDateAndEndDate()
public
getSumByUserIDAndObjectTypeIDAndPayCodeIDAndStartDateAndEndDate(string $user_id, int|array<string|int, int> $object_type_id, array<string|int, string> $pay_code_id, int $start_date, int $end_date) : bool
Parameters
- $user_id : string
-
UUID
- $object_type_id : int|array<string|int, int>
- $pay_code_id : array<string|int, string>
-
UUID
- $start_date : int
-
EPOCH
- $end_date : int
-
EPOCH
Return values
bool —getTable()
public
getTable([bool $strip_quotes = false ]) : bool|string
Parameters
- $strip_quotes : bool = false
Return values
bool|string —getTimeCategory()
Returns an array of time categories that the object_type fits in.
public
getTimeCategory([bool $include_total = true ][, bool $report_columns = false ]) : array<string|int, mixed>
Parameters
- $include_total : bool = true
- $report_columns : bool = false
Return values
array<string|int, mixed> —getTimesheetDetailReportByCompanyIdAndArrayCriteria()
public
getTimesheetDetailReportByCompanyIdAndArrayCriteria(string $company_id, $filter_data[, int $limit = null ][, int $page = null ][, array<string|int, mixed> $where = null ][, array<string|int, mixed> $order = null ]) : $this
Parameters
- $company_id : string
-
UUID
- $filter_data :
- $limit : int = null
-
Limit the number of records returned
- $page : int = null
-
Page number of records to return for pagination
- $where : array<string|int, mixed> = null
-
Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Return values
$this —getTimesheetSummaryReportByCompanyIdAndArrayCriteria()
public
getTimesheetSummaryReportByCompanyIdAndArrayCriteria(string $company_id, $filter_data[, int $limit = null ][, int $page = null ][, array<string|int, mixed> $where = null ][, array<string|int, mixed> $order = null ]) : $this
Parameters
- $company_id : string
-
UUID
- $filter_data :
- $limit : int = null
-
Limit the number of records returned
- $page : int = null
-
Page number of records to return for pagination
- $where : array<string|int, mixed> = null
-
Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order : array<string|int, mixed> = null
-
Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
Return values
$this —getTotalByPayPeriodIdAndObjectTypeAndOverride()
public
getTotalByPayPeriodIdAndObjectTypeAndOverride(string $pay_period_id, $object_type_id, $override) : bool|int
Parameters
Return values
bool|int —getTotalSumByUserIdAndDateStamp()
public
getTotalSumByUserIdAndDateStamp(string $user_id, int $date_stamp) : bool|int
Parameters
- $user_id : string
-
UUID
- $date_stamp : int
-
EPOCH
Return values
bool|int —getTotalSumByUserIdAndDateStampAndObjectType()
public
getTotalSumByUserIdAndDateStampAndObjectType(string $user_id, int $date_stamp, int $object_type_id) : bool|int
Parameters
- $user_id : string
-
UUID
- $date_stamp : int
-
EPOCH
- $object_type_id : int
Return values
bool|int —getTotalTime()
public
getTotalTime() : bool|int
Return values
bool|int —getTotalTimeAmount()
public
getTotalTimeAmount() : bool|mixed
Return values
bool|mixed —getTotalTimeAmountWithBurden()
public
getTotalTimeAmountWithBurden() : bool|mixed
Return values
bool|mixed —getTotalTimeSumByUserIDAndPayCodeIDAndStartDateAndEndDate()
public
getTotalTimeSumByUserIDAndPayCodeIDAndStartDateAndEndDate(string $user_id, string $pay_code_id, int $start_date, int $end_date) : bool|int
Parameters
- $user_id : string
-
UUID
- $pay_code_id : string
-
UUID
- $start_date : int
-
EPOCH
- $end_date : int
-
EPOCH
Return values
bool|int —getTransactionMode()
public
getTransactionMode([bool $force = false ]) : string
Parameters
- $force : bool = false
Return values
string —getType()
public
getType() : bool|int
Return values
bool|int —getUpdatedBy()
public
getUpdatedBy() : bool|mixed
Return values
bool|mixed —getUpdatedDate()
public
getUpdatedDate() : int
Return values
int —getUser()
public
getUser() : mixed
Return values
mixed —getUserObject()
public
getUserObject() : UserFactory|bool
Return values
UserFactory|bool —getValidSQLColumns()
public
getValidSQLColumns(array<string|int, mixed> $array[, bool $strict = true ][, array<string|int, mixed> $additional_fields = null ]) : array<string|int, mixed>
Parameters
- $array : array<string|int, mixed>
- $strict : bool = true
- $additional_fields : array<string|int, mixed> = null
Tags
Return values
array<string|int, mixed> —getVariableToFunctionMap()
public
getVariableToFunctionMap([array<string|int, mixed> $data = null ]) : array<string|int, mixed>|bool
Parameters
- $data : array<string|int, mixed> = null
Return values
array<string|int, mixed>|bool —getWeekRegularTimeSumByUserIDAndEpochAndStartWeekEpoch()
public
getWeekRegularTimeSumByUserIDAndEpochAndStartWeekEpoch(string $user_id, int $epoch, int $week_start_epoch) : bool|int
Parameters
- $user_id : string
-
UUID
- $epoch : int
-
EPOCH
- $week_start_epoch : int
-
EPOCH
Return values
bool|int —getWeekWorkedTimeSumByUserIDAndEpochAndStartWeekEpoch()
Make sure we take into account auto-deduct/add meal/break policies.
public
getWeekWorkedTimeSumByUserIDAndEpochAndStartWeekEpoch(string $user_id, int $epoch, int $week_start_epoch) : bool|int
Parameters
- $user_id : string
-
UUID
- $epoch : int
-
EPOCH
- $week_start_epoch : int
-
EPOCH
Return values
bool|int —getWorkedTimeSumByUserIDAndPayPeriodId()
public
getWorkedTimeSumByUserIDAndPayPeriodId(string $user_id, string $pay_period_id) : bool|int
Parameters
- $user_id : string
-
UUID
- $pay_period_id : string
-
UUID
Return values
bool|int —getWorkedTimeSumByUserIDAndStartDateAndEndDate()
This isn't JUST worked time, it also includes paid lunch/break time. Specifically in auto-deduct cases where they work 8.5hrs and only get paid for 8hrs due to auto-deduct lunch or breaks.
public
getWorkedTimeSumByUserIDAndStartDateAndEndDate(string $user_id, int $start_date, int $end_date) : bool|int
Parameters
- $user_id : string
-
UUID
- $start_date : int
-
EPOCH
- $end_date : int
-
EPOCH
Return values
bool|int —getWorkedUsersByPayPeriodId()
public
getWorkedUsersByPayPeriodId(string $pay_period_id) : bool|int
Parameters
- $pay_period_id : string
-
UUID
Return values
bool|int —handleSaveSQLReturning()
Used to handle any "RETURNING ..." clause on a SQL INSERT/UPDATE query.
public
handleSaveSQLReturning( $rs) : bool
Parameters
Return values
bool —hasDataChanged()
Determine if the record data has changed at all.
public
hasDataChanged() : bool
Return values
bool —isClientFriendly()
Check if the remote client is our main UI app controlled by us, vs. a user utilizing the API for example.
public
isClientFriendly() : bool
This is mostly used to determine if we can return columns that are resource intensive to compute when obtaining a list. (ie: Users, Jobs)
Return values
bool —isDataDifferent()
Used to check the differences between a single key in the $old_data vs. $data arrays.
public
isDataDifferent( $key, $data_diff[, null $type_id = null ][, null $new_data = null ]) : bool
This is especially important to use when trying to see if a date or timestamp field in the DB has changed, as they need to be handled in special ways.
Parameters
Return values
bool —isNew()
Determines if the data is new data, or updated data. Basically determines if a database INSERT or UPDATE SQL statement is generated.
public
isNew([bool $force_lookup = false ][, string $id = null ]) : bool
Parameters
- $force_lookup : bool = false
- $id : string = null
-
UUID
Return values
bool —isSQLExceptionRetryable()
Determines if a SQL exception is one that can be retried or not.
public
isSQLExceptionRetryable( $e) : bool
Parameters
Return values
bool —isValid()
Call class specific validation function just before saving.
public
isValid([bool $ignore_warning = true ]) : bool
Parameters
- $ignore_warning : bool = true
Return values
bool —isWarning()
Call class specific validation function just before saving.
public
isWarning() : bool
Return values
bool —modifyInsertQuery()
Modifies the automatically generated SQL INSERT query for adding things like " ON CONFLICT ..."
public
modifyInsertQuery( $query) : mixed
Parameters
Return values
mixed —parseCustomFieldsFromArray()
public
parseCustomFieldsFromArray( $data) : mixed
Parameters
Return values
mixed —postSave()
public
postSave() : bool
Return values
bool —preValidate()
public
preValidate() : bool
Return values
bool —reCalculateDay()
public
static reCalculateDay(UserFactory $user_obj, int|array<string|int, int> $date_stamps[, bool $enable_exception = false ][, bool $enable_premature_exceptions = false ][, bool $enable_future_exceptions = true ][, bool $enable_holidays = false ]) : bool
Parameters
- $user_obj : UserFactory
- $date_stamps : int|array<string|int, int>
-
EPOCH
- $enable_exception : bool = false
- $enable_premature_exceptions : bool = false
- $enable_future_exceptions : bool = true
- $enable_holidays : bool = false
Return values
bool —removeCache()
public
removeCache([string $cache_id = null ][, string $group_id = null ]) : bool
Parameters
- $cache_id : string = null
- $group_id : string = null
Return values
bool —RetryTransaction()
Accepts a Closure and is retried at set intervals which should be in a transaction.
public
RetryTransaction( $transaction_function[, int $retry_max_attempts = 4 ][, int $retry_sleep = 1 ]) : mixed
Parameters
Tags
Return values
mixed —rewind()
Rewinds record set iterator to begining. The same as ADODB's MoveFirst() function.
public
final rewind() : bool
Return values
bool —RollbackSavePoint()
public
RollbackSavePoint( $name) : bool
Parameters
Return values
bool —Save()
Determines to insert or update, and does it.
public
Save([bool $reset_data = true ][, bool $force_lookup = false ]) : bool|int|string
Have this handle created, createdby, updated, updatedby.
Parameters
- $reset_data : bool = true
- $force_lookup : bool = false
Tags
Return values
bool|int|string —saveCache()
public
saveCache(mixed $data, string $cache_id[, string $group_id = null ]) : bool
Parameters
- $data : mixed
- $cache_id : string
- $group_id : string = null
Return values
bool —serializeRS()
Serialize ADODB recordset.
public
serializeRS(object $rs) : string
Parameters
- $rs : object
Tags
Return values
string —setActualTotalTime()
public
setActualTotalTime( $value) : bool
Parameters
Return values
bool —setAPIMessageID()
public
setAPIMessageID(string $id) : bool
Parameters
- $id : string
-
UUID
Return values
bool —setBadQuantity()
public
setBadQuantity( $value) : bool
Parameters
Return values
bool —setBaseHourlyRate()
public
setBaseHourlyRate( $value) : bool
Parameters
Return values
bool —setBranch()
public
setBranch(string $value) : bool
Parameters
- $value : string
-
UUID
Return values
bool —setCacheLifeTime()
public
setCacheLifeTime(int $secs) : bool
Parameters
- $secs : int
Return values
bool —setCreatedAndUpdatedColumns()
public
setCreatedAndUpdatedColumns(array<string|int, mixed> $data[, array<string|int, mixed> $variable_to_function_map = [] ]) : bool
Parameters
- $data : array<string|int, mixed>
- $variable_to_function_map : array<string|int, mixed> = []
Return values
bool —setCreatedBy()
public
setCreatedBy([string $id = null ]) : bool
Parameters
- $id : string = null
-
UUID
Return values
bool —setCreatedDate()
public
setCreatedDate([int $epoch = null ]) : bool
Parameters
- $epoch : int = null
-
EPOCH
Return values
bool —setCurrency()
public
setCurrency(string $id[, bool $disable_rate_lookup = false ]) : bool
Parameters
- $id : string
-
UUID
- $disable_rate_lookup : bool = false
Return values
bool —setCurrencyRate()
Currency exchange rate to convert the amount back to the base currency. Rate=1 would usually only happen if the current currency is the base currency.
public
setCurrencyRate( $value) : bool
Parameters
Return values
bool —setCustomField()
Set a single custom field by ID.
public
setCustomField(mixed $value, string $id) : void
Parameters
- $value : mixed
- $id : string
-
UUID
Return values
void —setCustomFields()
public
setCustomFields( $data) : bool
Parameters
Return values
bool —setDateStamp()
public
setDateStamp(int $value) : bool
Parameters
- $value : int
-
EPOCH
Return values
bool —setDeleted()
public
setDeleted(bool $bool) : bool
Parameters
- $bool : bool
Return values
bool —setDeletedBy()
public
setDeletedBy([string $id = null ]) : bool|null
Parameters
- $id : string = null
-
UUID
Return values
bool|null —setDeletedDate()
public
setDeletedDate([int $epoch = null ]) : bool
Parameters
- $epoch : int = null
-
EPOCH
Return values
bool —setDepartment()
public
setDepartment(string $value) : bool
Parameters
- $value : string
-
UUID
Return values
bool —setEnableCalcAccrualPolicy()
public
setEnableCalcAccrualPolicy( $bool) : bool
Parameters
Return values
bool —setEnableCalcException()
public
setEnableCalcException( $bool) : bool
Parameters
Return values
bool —setEnableCalcFutureWeek()
public
static setEnableCalcFutureWeek( $bool) : bool
Parameters
Return values
bool —setEnableCalcSystemTotalTime()
public
setEnableCalcSystemTotalTime( $bool) : bool
Parameters
Return values
bool —setEnableCalculatePolicy()
public
setEnableCalculatePolicy( $bool) : bool
Parameters
Return values
bool —setEnableCalcWeeklySystemTotalTime()
public
setEnableCalcWeeklySystemTotalTime( $bool) : bool
Parameters
Return values
bool —setEnablePreMatureException()
public
setEnablePreMatureException( $bool) : bool
Parameters
Return values
bool —setEnableSystemLogDetail()
public
setEnableSystemLogDetail( $bool) : bool
Parameters
Return values
bool —setEnableTimeSheetVerificationCheck()
public
setEnableTimeSheetVerificationCheck( $bool) : bool
Parameters
Return values
bool —setEndTimeStamp()
public
setEndTimeStamp(int $value) : bool
Parameters
- $value : int
-
EPOCH
Return values
bool —setEndType()
public
setEndType( $value) : bool
Parameters
Return values
bool —setGenericDataValue()
public
setGenericDataValue(string $name, mixed $data[, null $cast = null ]) : bool
Parameters
- $name : string
- $data : mixed
- $cast : null = null
Return values
bool —setGenericJSONDataValue()
Generic getter/setter functions for handling generic JSON data in 'other_json' SQL column.
public
setGenericJSONDataValue(string $name, mixed $data[, null $cast = null ]) : bool
Parameters
- $name : string
- $data : mixed
- $cast : null = null
Return values
bool —setGenericObject()
Allow method to pre-populate/overwrite the cache if needed.
public
setGenericObject(object $obj, string $variable) : bool
Parameters
- $obj : object
- $variable : string
Return values
bool —setGenericTempDataValue()
public
setGenericTempDataValue(string $name, mixed $data) : bool
Parameters
- $name : string
- $data : mixed
Return values
bool —setHourlyRate()
public
setHourlyRate( $value) : bool
Parameters
Return values
bool —setHourlyRateWithBurden()
public
setHourlyRateWithBurden( $value) : bool
Parameters
Return values
bool —setId()
public
setId(string $id) : bool
Parameters
- $id : string
-
UUID
Return values
bool —setIsPartialShift()
public
setIsPartialShift( $bool) : bool
Parameters
Return values
bool —setIsValid()
Sets the is_valid flag, mostly used to set it to FALSE to force a full re-validation.
public
setIsValid([bool $is_valid = false ]) : bool
Required because $this->is_valid is a private variable and should stay that way.
Parameters
- $is_valid : bool = false
Return values
bool —setJob()
public
setJob(string $value) : bool
Parameters
- $value : string
-
UUID
Return values
bool —setJobItem()
public
setJobItem(string $value) : bool
Parameters
- $value : string
-
UUID
Return values
bool —setNote()
public
setNote( $value) : bool
Parameters
Return values
bool —setObjectFromArray()
public
setObjectFromArray( $data) : bool
Parameters
Return values
bool —setObjectType()
public
setObjectType( $value) : bool
Parameters
Return values
bool —setOldDateStamp()
public
setOldDateStamp( $value) : bool
Parameters
Return values
bool —setOverride()
public
setOverride( $value) : bool
Parameters
Return values
bool —setPayCode()
public
setPayCode(string $value) : bool
Parameters
- $value : string
-
UUID
Return values
bool —setPayPeriod()
public
setPayPeriod([string $value = null ]) : bool
Parameters
- $value : string = null
-
UUID
Return values
bool —setProgressBarObject()
public
setProgressBarObject(object $obj) : bool
Parameters
- $obj : object
Return values
bool —setPunchControlID()
public
setPunchControlID(string $value) : bool
Parameters
- $value : string
-
UUID
Return values
bool —setPunchTag()
public
setPunchTag(mixed $value) : bool
Parameters
- $value : mixed
Return values
bool —setQuantity()
public
setQuantity( $value) : bool
Parameters
Return values
bool —setQueryStatementTimeout()
public
setQueryStatementTimeout([null $milliseconds = null ]) : bool
Parameters
- $milliseconds : null = null
Return values
bool —setSourceObject()
public
setSourceObject(string $value) : bool
Parameters
- $value : string
-
UUID
Return values
bool —setStartTimeStamp()
public
setStartTimeStamp(int $value) : bool
Parameters
- $value : int
-
EPOCH
Return values
bool —setStartType()
public
setStartType( $value) : bool
Parameters
Return values
bool —setTotalTime()
public
setTotalTime( $value) : bool
Parameters
Return values
bool —setTotalTimeAmount()
public
setTotalTimeAmount( $value) : bool
Parameters
Return values
bool —setTotalTimeAmountWithBurden()
public
setTotalTimeAmountWithBurden( $value) : bool
Parameters
Return values
bool —setTransactionMode()
public
setTransactionMode([string $mode = '' ]) : mixed
Parameters
- $mode : string = ''
Return values
mixed —setUpdatedBy()
public
setUpdatedBy([string $id = null ]) : bool|null
Parameters
- $id : string = null
-
UUID
Return values
bool|null —setUpdatedDate()
public
setUpdatedDate([int $epoch = null ]) : bool|int|null|string
Parameters
- $epoch : int = null
-
EPOCH
Return values
bool|int|null|string —setUser()
public
setUser(string $value) : bool
Parameters
- $value : string
-
UUID
Return values
bool —sortAccumulatedTimeByOrder()
public
static sortAccumulatedTimeByOrder( $a, $b) : int
Parameters
Return values
int —StartSavePoint()
public
StartSavePoint( $name) : bool
Parameters
Return values
bool —StartTransaction()
public
StartTransaction() : mixed
Return values
mixed —toBool()
public
toBool(string|int|bool $value) : int
Parameters
- $value : string|int|bool
Return values
int —toJSONBool()
public
toJSONBool(string|int|bool $value) : string
Parameters
- $value : string|int|bool
Return values
string —Validate()
public
Validate([bool $ignore_warning = true ]) : bool
Parameters
- $ignore_warning : bool = true
Return values
bool —validateCustomFields()
public
validateCustomFields(mixed $company_id[, mixed $enable_required_field_check = true ]) : mixed
Parameters
- $company_id : mixed
- $enable_required_field_check : mixed = true
Return values
mixed —_getFactoryOptions()
protected
_getFactoryOptions(string $name[, string|int $parent = null ]) : bool
Parameters
- $name : string
- $parent : string|int = null
Return values
bool —_getVariableToFunctionMap()
protected
_getVariableToFunctionMap(array<string|int, mixed> $data) : bool
Parameters
- $data : array<string|int, mixed>
Return values
bool —castInteger()
protected
castInteger(int|string $int[, string $type = 'int' ]) : bool|int|string
Parameters
- $int : int|string
- $type : string = 'int'
Return values
bool|int|string —getColumnsFromAliases()
protected
getColumnsFromAliases(array<string|int, mixed> $columns, array<string|int, mixed> $aliases) : array<string|int, mixed>
Parameters
- $columns : array<string|int, mixed>
- $aliases : array<string|int, mixed>
Return values
array<string|int, mixed> —getCustomFieldWhereSQL()
protected
getCustomFieldWhereSQL(mixed $company_id, mixed $column, array<string|int, mixed> $filter_data, array<string|int, mixed> &$ph) : string
Parameters
- $company_id : mixed
- $column : mixed
- $filter_data : array<string|int, mixed>
- $ph : array<string|int, mixed>
Return values
string —getDatabaseType()
protected
getDatabaseType() : string
Return values
string —getListSQL()
protected
getListSQL(array<string|int, mixed>|string|int $array[, array<string|int, mixed> &$ph = null ][, string|bool $cast = false ]) : bool|int|string|array<string|int, mixed>
Parameters
- $array : array<string|int, mixed>|string|int
- $ph : array<string|int, mixed> = null
- $cast : string|bool = false
Return values
bool|int|string|array<string|int, mixed> —getSortSQL()
protected
getSortSQL(array<string|int, mixed> $array[, bool $strict = true ][, array<string|int, mixed> $additional_fields = null ]) : bool|string
Parameters
- $array : array<string|int, mixed>
- $strict : bool = true
- $additional_fields : array<string|int, mixed> = null
Return values
bool|string —getSQLStringAggregate()
protected
getSQLStringAggregate(string $sql, string $glue) : string
Parameters
- $sql : string
- $glue : string
Return values
string —getSQLToEpochFunction()
protected
getSQLToEpochFunction(string $sql) : string
Parameters
- $sql : string
Return values
string —getSQLToTimeFunction()
protected
getSQLToTimeFunction(string $sql) : string
Parameters
- $sql : string
Return values
string —getSQLToTimeStampFunction()
protected
getSQLToTimeStampFunction() : string
Return values
string —getWhereClauseSQL()
protected
getWhereClauseSQL(array<string|int, mixed>|string $columns, array<string|int, mixed>|string $args, string $type, array<string|int, mixed> &$ph[, string $query_stub = null ][, bool $and = true ]) : null|string
Parameters
- $columns : array<string|int, mixed>|string
- $args : array<string|int, mixed>|string
- $type : string
- $ph : array<string|int, mixed>
- $query_stub : string = null
- $and : bool = true
Tags
Return values
null|string —getWhereSQL()
protected
getWhereSQL(array<string|int, mixed> $array[, bool $append_where = false ]) : bool|string
Parameters
- $array : array<string|int, mixed>
- $append_where : bool = false
Return values
bool|string —handleSQLSyntax()
SQL where clause Syntax: or % as wildcard.
protected
handleSQLSyntax(string $arg) : string
"
Handles '*' and '%' as wildcards, defaults to wildcard on the end always. If no wildcard is to be added, the last character should be |
Parameters
- $arg : string
Return values
string —stripSQLSyntax()
protected
stripSQLSyntax(string $arg) : mixed
Parameters
- $arg : string
Return values
mixed —getInsertQuery()
private
getInsertQuery() : mixed
Return values
mixed —getRecordSetColumnList()
private
getRecordSetColumnList(object $rs) : array<string|int, mixed>|bool
Parameters
- $rs : object
Return values
array<string|int, mixed>|bool —getUpdateQuery()
private
getUpdateQuery() : bool
Tags
Return values
bool —parseColumnName()
Parses out the exact column name, without any aliases, or = signs in it.
private
parseColumnName(string $column) : bool|string
Parameters
- $column : string