PayPeriodScheduleListFactory - staffcheck/api GitHub Wiki
- Class name: PayPeriodScheduleListFactory
- Namespace:
- Parent class: PayPeriodScheduleFactory
- This class implements: IteratorAggregate
protected mixed $table = 'pay_period_schedule'
- Visibility: protected
protected mixed $pk_sequence_name = 'pay_period_schedule_id_seq'
- Visibility: protected
protected mixed $holiday_epochs = array()
- Visibility: protected
protected mixed $create_initial_pay_periods = FALSE
- Visibility: protected
protected mixed $enable_create_initial_pay_periods = TRUE
- Visibility: protected
public mixed $data = array()
- Visibility: public
public mixed $old_data = array()
- Visibility: public
public mixed $tmp_data = array()
- Visibility: public
protected mixed $enable_system_log_detail = TRUE
- Visibility: protected
protected mixed $progress_bar_obj = NULL
- Visibility: protected
protected mixed $AMF_message_id = NULL
- Visibility: protected
public mixed $Validator = NULL
- Visibility: public
public mixed $validate_only = FALSE
- Visibility: public
private mixed $is_valid = FALSE
- Visibility: private
\PayPeriodScheduleListFactory PayPeriodScheduleListFactory::getAll(integer $limit, integer $page, array $where, array $order)
- Visibility: public
- $limit integer - Limit the number of records returned
- $page integer - Page number of records to return for pagination
- $where array - Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order array - Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
boolean|\PayPeriodScheduleListFactory PayPeriodScheduleListFactory::getById(string $id, array $where, array $order)
- Visibility: public
- $id string - UUID
- $where array - Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order array - Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
boolean|\PayPeriodScheduleListFactory PayPeriodScheduleListFactory::getByUserId(string $user_id, array $where, array $order)
- Visibility: public
- $user_id string - UUID
- $where array - Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order array - Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
boolean|\PayPeriodScheduleListFactory PayPeriodScheduleListFactory::getByCompanyId(string $id, integer $limit, integer $page, array $where, array $order)
- Visibility: public
- $id string - UUID
- $limit integer - Limit the number of records returned
- $page integer - Page number of records to return for pagination
- $where array - Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order array - Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
boolean|\PayPeriodScheduleListFactory PayPeriodScheduleListFactory::getByCompanyIdAndUserId(string $company_id, string $user_ids, array $where, array $order)
- Visibility: public
- $company_id string - UUID
- $user_ids string - UUID
- $where array - Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order array - Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
boolean|\PayPeriodScheduleListFactory PayPeriodScheduleListFactory::getByIdAndCompanyId(string $id, string $company_id, array $order)
- Visibility: public
- $id string - UUID
- $company_id string - UUID
- $order array - Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
boolean|\PayPeriodScheduleListFactory PayPeriodScheduleListFactory::getByPayPeriodIdAndCompanyId(string $id, string $company_id, integer $limit, integer $page, array $where, array $order)
- Visibility: public
- $id string - UUID
- $company_id string - UUID
- $limit integer - Limit the number of records returned
- $page integer - Page number of records to return for pagination
- $where array - Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order array - Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
array|boolean PayPeriodScheduleListFactory::getByCompanyIdArray(string $company_id, boolean $include_blank)
- Visibility: public
- $company_id string - UUID
- $include_blank boolean
array|boolean PayPeriodScheduleListFactory::getArrayByListFactory($lf, boolean $include_blank)
- Visibility: public
- $lf mixed
- $include_blank boolean
array|boolean PayPeriodScheduleListFactory::getUserToPayPeriodScheduleMapArrayByListFactory($lf)
- Visibility: public
- $lf mixed
boolean|\PayPeriodScheduleListFactory PayPeriodScheduleListFactory::getAPISearchByCompanyIdAndArrayCriteria(string $company_id, $filter_data, integer $limit, integer $page, array $where, array $order)
- Visibility: public
- $company_id string - UUID
- $filter_data mixed
- $limit integer - Limit the number of records returned
- $page integer - Page number of records to return for pagination
- $where array - Additional SQL WHERE clause in format of array( $column => $filter, ... ). ie: array( 'id' => 1, ... )
- $order array - Sort order passed to SQL in format of array( $column => 'asc', 'name' => 'desc', ... ). ie: array( 'id' => 'asc', 'name' => 'desc', ... )
boolean Factory::_getFactoryOptions(string $name, string|integer $parent)
- Visibility: protected
- This method is defined by Factory
- $name string
- $parent string|integer
boolean Factory::_getVariableToFunctionMap(array $data)
- Visibility: protected
- This method is defined by Factory
- $data array
boolean|mixed PayPeriodScheduleFactory::getCompany()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setCompany(string $value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value string - UUID
boolean|integer PayPeriodScheduleFactory::getType()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setType($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean|integer PayPeriodScheduleFactory::getStartWeekDay()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setStartWeekDay($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean|integer PayPeriodScheduleFactory::getShiftAssignedDay()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setShiftAssignedDay($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean PayPeriodScheduleFactory::isUniqueName($name)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $name mixed
boolean|mixed PayPeriodScheduleFactory::getName()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setName($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean|mixed PayPeriodScheduleFactory::getDescription()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setDescription($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean PayPeriodScheduleFactory::getStartDayOfWeek(boolean $raw)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $raw boolean
boolean PayPeriodScheduleFactory::setStartDayOfWeek($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean|mixed PayPeriodScheduleFactory::getTransactionDate()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setTransactionDate($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
integer PayPeriodScheduleFactory::convertLastDayOfMonth($val)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $val mixed
boolean|mixed PayPeriodScheduleFactory::getPrimaryDayOfMonth()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setPrimaryDayOfMonth($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean|mixed PayPeriodScheduleFactory::getSecondaryDayOfMonth()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setSecondaryDayOfMonth($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean|mixed PayPeriodScheduleFactory::getPrimaryTransactionDayOfMonth()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setPrimaryTransactionDayOfMonth($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean|mixed PayPeriodScheduleFactory::getSecondaryTransactionDayOfMonth()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setSecondaryTransactionDayOfMonth($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean|integer PayPeriodScheduleFactory::getTransactionDateBusinessDay()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setTransactionDateBusinessDay($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean|integer PayPeriodScheduleFactory::getAnchorDate(boolean $raw)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $raw boolean
boolean PayPeriodScheduleFactory::setAnchorDate(integer $value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value integer - EPOCH
boolean|integer PayPeriodScheduleFactory::getDayStartTime()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setDayStartTime($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
mixed PayPeriodScheduleFactory::getTimeZoneOptions()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean|mixed PayPeriodScheduleFactory::getTimeZone()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setTimeZone($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean PayPeriodScheduleFactory::setOriginalTimeZone()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setPayPeriodTimeZone()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean|integer PayPeriodScheduleFactory::getNewDayTriggerTime()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setNewDayTriggerTime($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean|integer PayPeriodScheduleFactory::getMaximumShiftTime()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setMaximumShiftTime($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean|integer PayPeriodScheduleFactory::getAnnualPayPeriods()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setAnnualPayPeriods($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean|integer PayPeriodScheduleFactory::getTimeSheetVerifyType()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setTimeSheetVerifyType($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean|string PayPeriodScheduleFactory::getTimeSheetVerifyBeforeEndDate()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setTimeSheetVerifyBeforeEndDate($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean|string PayPeriodScheduleFactory::getTimeSheetVerifyBeforeTransactionDate()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setTimeSheetVerifyBeforeTransactionDate($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean|integer PayPeriodScheduleFactory::getTimeSheetVerifyNoticeBeforeTransactionDate()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setTimeSheetVerifyNoticeBeforeTransactionDate($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
boolean PayPeriodScheduleFactory::getTimeSheetVerifyNoticeEmail()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setTimeSheetVerifyNoticeEmail($value)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $value mixed
array|boolean PayPeriodScheduleFactory::getUser()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setUser(string $ids)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $ids string - UUID
integer PayPeriodScheduleFactory::getTransactionBusinessDay(integer $epoch)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $epoch integer - EPOCH
boolean PayPeriodScheduleFactory::getNextPayPeriod(integer $end_date)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $end_date integer - EPOCH
boolean PayPeriodScheduleFactory::createNextPayPeriod(integer $end_date, null $offset, boolean $enable_import_data)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $end_date integer - EPOCH
- $offset null
- $enable_import_data boolean
boolean PayPeriodScheduleFactory::getNextStartDate()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::getNextEndDate()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::getNextTransactionDate()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::getNextAdvanceEndDate()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::getNextAdvanceTransactionDate()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::getNextPrimary()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean|float|integer|mixed PayPeriodScheduleFactory::getHireAdjustedAnnualPayPeriods(integer $epoch, integer $hire_date)
Get the annual pay periods adjusted for the employees hire date.
This is required in CompanyDeduction FormulaType=20 situations.
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $epoch integer - EPOCH Must be a TRANSACTION DATE of a Pay Period
- $hire_date integer - EPOCH Hire date of employee
boolean|float|integer|mixed PayPeriodScheduleFactory::getHireAdjustedCurrentPayPeriodNumber(integer $epoch, integer $end_date_epoch, integer $hire_date)
Get the current pay period number adjusted for the employees hire date.
This is required in CompanyDeduction FormulaType=20 situations.
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $epoch integer - EPOCH Must be a TRANSACTION DATE of a Pay Period
- $end_date_epoch integer - EPOCH Must be a END DATE of a Pay Period
- $hire_date integer - EPOCH Hire date of employee
boolean|float|integer|mixed PayPeriodScheduleFactory::getHiredPayPeriodNumberAdjustment(integer $epoch, integer $hire_date)
Get the pay period number that the employee was hired on. This starts at 0 so it can be added to getHireAdjustedCurrentPayPeriodNumber() to get the total annual pay periods.
This is required in CompanyDeduction FormulaType=20 situations.
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $epoch integer - EPOCH Must be a TRANSACTION DATE of a Pay Period
- $hire_date integer - EPOCH Hire date of employee
boolean|float|integer|mixed PayPeriodScheduleFactory::getCurrentPayPeriodNumber(integer $epoch, integer $end_date_epoch)
Pay period number functionality is deprecated, it causes too many problems for little or no benefit.
Its also impossible to properly handle in custom situations where pay periods may be adjusted. However it is required in CompanyDeduction FormulaType=20 situations.
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $epoch integer - EPOCH Must be a TRANSACTION DATE of a Pay Period
- $end_date_epoch integer - EPOCH Must be a END DATE of a Pay Period
boolean|float|integer PayPeriodScheduleFactory::calcAnnualPayPeriods(integer $type_id)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $type_id integer - ID
array|boolean PayPeriodScheduleFactory::detectPayPeriodScheduleDates(integer $type_id, integer $start_date)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $type_id integer
- $start_date integer - EPOCH
boolean PayPeriodScheduleFactory::detectPayPeriodScheduleSettings(integer $type_id, integer $example_dates)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $type_id integer
- $example_dates integer - EPOCH
mixed PayPeriodScheduleFactory::getShiftAssignedDate(integer $start_epoch, integer $end_epoch, boolean $shift_assigned_day_id)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $start_epoch integer - EPOCH
- $end_epoch integer - EPOCH
- $shift_assigned_day_id boolean
mixed PayPeriodScheduleFactory::getStartAndEndDateRangeFromPastPayPeriods($date_stamp, $total_pay_periods)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $date_stamp mixed
- $total_pay_periods mixed
array|boolean PayPeriodScheduleFactory::getShiftData(integer $date_stamp, string $user_id, integer $epoch, null $filter, object $tmp_punch_control_obj, null $maximum_shift_time, null $new_shift_trigger_time, null $plf, boolean $ignore_future_punches)
Returns shift data according to the pay period schedule criteria for use in determining which day punches belong to.
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $date_stamp integer - EPOCH
- $user_id string - UUID
- $epoch integer - EPOCH
- $filter null
- $tmp_punch_control_obj object
- $maximum_shift_time null
- $new_shift_trigger_time null
- $plf null
- $ignore_future_punches boolean
boolean PayPeriodScheduleFactory::importData(boolean $user_ids)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $user_ids boolean
boolean PayPeriodScheduleFactory::getEnableInitialPayPeriods()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setEnableInitialPayPeriods($val)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $val mixed
boolean PayPeriodScheduleFactory::getCreateInitialPayPeriods()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setCreateInitialPayPeriods($val)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $val mixed
boolean PayPeriodScheduleFactory::forceClosePreviousPayPeriods(integer $date)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $date integer - EPOCH
boolean|integer PayPeriodScheduleFactory::getFirstPayPeriodStartDate()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::preSave()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::Validate(boolean $ignore_warning)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $ignore_warning boolean
boolean PayPeriodScheduleFactory::postSave()
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
boolean PayPeriodScheduleFactory::setObjectFromArray($data)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $data mixed
array PayPeriodScheduleFactory::getObjectAsArray(null $include_columns)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $include_columns null
boolean PayPeriodScheduleFactory::addLog($log_action)
- Visibility: public
- This method is defined by PayPeriodScheduleFactory
- $log_action mixed
mixed Factory::__construct()
Factory constructor.
- Visibility: public
- This method is defined by Factory
boolean|null Factory::getAMFMessageID()
Used for updating progress bar for API calls.
- Visibility: public
- This method is defined by Factory
boolean Factory::setAMFMessageID(string $id)
- Visibility: public
- This method is defined by Factory
- $id string - UUID
boolean Factory::setProgressBarObject(object $obj)
- Visibility: public
- This method is defined by Factory
- $obj object
null|\ProgressBar Factory::getProgressBarObject()
- Visibility: public
- This method is defined by Factory
boolean Factory::setGenericObject(object $obj, string $variable)
- Visibility: public
- This method is defined by Factory
- $obj object
- $variable string
boolean Factory::getGenericObject(string $list_factory, string|integer $id, string $variable, string $list_factory_method, string $id_method)
Generic function to return and cache class objects ListFactory, ListFactoryMethod, Variable, ID, IDMethod
- Visibility: public
- This method is defined by Factory
- $list_factory string
- $id string|integer - UUID
- $variable string
- $list_factory_method string
- $id_method string
mixed Factory::getCompanyGenericMapData(string $company_id, integer $object_type_id, string $id, string $variable)
- Visibility: public
- This method is defined by Factory
- $company_id string - UUID
- $object_type_id integer
- $id string - UUID
- $variable string
boolean|mixed Factory::getGenericDataValue(string $name, $cast)
- Visibility: public
- This method is defined by Factory
- $name string
- $cast mixed
boolean Factory::setGenericDataValue(string $name, mixed $data, $cast)
- Visibility: public
- This method is defined by Factory
- $name string
- $data mixed
- $cast mixed
mixed Factory::castGenericDataValue($value, $cast)
Generic casting function that all set/get*() functions should pass through.
However for now lets wait until we have meta data from SQL schema so we can pass those datatypes directly into this.
- Visibility: public
- This method is defined by Factory
- $value mixed - mixed
- $cast mixed - string
boolean Factory::getGenericTempDataValue(string $name)
- Visibility: public
- This method is defined by Factory
- $name string
boolean Factory::setGenericTempDataValue(string $name, mixed $data)
- Visibility: public
- This method is defined by Factory
- $name string
- $data mixed
boolean|mixed Factory::getGenericOldDataValue(string $name)
- Visibility: public
- This method is defined by Factory
- $name string - Gets data value from old_data array, or the original value in the database, prior to any changes currently in memory.
boolean|mixed Factory::getCache(string $cache_id, string $group_id)
- Visibility: public
- This method is defined by Factory
- $cache_id string
- $group_id string
boolean Factory::saveCache(mixed $data, string $cache_id, string $group_id)
- Visibility: public
- This method is defined by Factory
- $data mixed
- $cache_id string
- $group_id string
boolean Factory::removeCache(string $cache_id, string $group_id)
- Visibility: public
- This method is defined by Factory
- $cache_id string
- $group_id string
boolean Factory::setCacheLifeTime(integer $secs)
- Visibility: public
- This method is defined by Factory
- $secs integer
string Factory::serializeRS(object $rs)
- Visibility: public
- This method is defined by Factory
- $rs object
mixed Factory::unserializeRS(string $rs)
- Visibility: public
- This method is defined by Factory
- $rs string
boolean|string Factory::getTable(boolean $strip_quotes)
- Visibility: public
- This method is defined by Factory
- $strip_quotes boolean
boolean|mixed Factory::getColumn(string $column)
- Visibility: public
- This method is defined by Factory
- $column string
boolean|string Factory::__toString()
- Visibility: public
- This method is defined by Factory
integer Factory::toBool(string|integer|boolean $value)
- Visibility: public
- This method is defined by Factory
- $value string|integer|boolean
boolean Factory::fromBool(string|integer|boolean $value)
- Visibility: public
- This method is defined by Factory
- $value string|integer|boolean
boolean Factory::isNew(boolean $force_lookup, string $id)
Determines if the data is new data, or updated data. Basically determines if a database INSERT or UPDATE SQL statement is generated.
- Visibility: public
- This method is defined by Factory
- $force_lookup boolean
- $id string - UUID
boolean|mixed|string Factory::getLabelId()
- Visibility: public
- This method is defined by Factory
boolean|mixed Factory::getId()
- Visibility: public
- This method is defined by Factory
boolean Factory::setId(string $id)
- Visibility: public
- This method is defined by Factory
- $id string - UUID
boolean Factory::getEnableSystemLogDetail()
- Visibility: public
- This method is defined by Factory
boolean Factory::setEnableSystemLogDetail($bool)
- Visibility: public
- This method is defined by Factory
- $bool mixed
boolean Factory::getDeleted()
- Visibility: public
- This method is defined by Factory
boolean Factory::setDeleted(boolean $bool)
- Visibility: public
- This method is defined by Factory
- $bool boolean
integer Factory::getCreatedDate()
- Visibility: public
- This method is defined by Factory
boolean Factory::setCreatedDate(integer $epoch)
- Visibility: public
- This method is defined by Factory
- $epoch integer - EPOCH
boolean|mixed Factory::getCreatedBy()
- Visibility: public
- This method is defined by Factory
boolean Factory::setCreatedBy(string $id)
- Visibility: public
- This method is defined by Factory
- $id string - UUID
integer Factory::getUpdatedDate()
- Visibility: public
- This method is defined by Factory
boolean|integer|null|string Factory::setUpdatedDate(integer $epoch)
- Visibility: public
- This method is defined by Factory
- $epoch integer - EPOCH
boolean|mixed Factory::getUpdatedBy()
- Visibility: public
- This method is defined by Factory
boolean|null Factory::setUpdatedBy(string $id)
- Visibility: public
- This method is defined by Factory
- $id string - UUID
boolean|mixed Factory::getDeletedDate()
- Visibility: public
- This method is defined by Factory
boolean Factory::setDeletedDate(integer $epoch)
- Visibility: public
- This method is defined by Factory
- $epoch integer - EPOCH
boolean|mixed Factory::getDeletedBy()
- Visibility: public
- This method is defined by Factory
boolean|null Factory::setDeletedBy(string $id)
- Visibility: public
- This method is defined by Factory
- $id string - UUID
boolean Factory::setIsValid(boolean $is_valid)
Sets the is_valid flag, mostly used to set it to FALSE to force a full re-validation.
Required because $this->is_valid is a private variable and should stay that way.
- Visibility: public
- This method is defined by Factory
- $is_valid boolean
boolean Factory::setCreatedAndUpdatedColumns(array $data, array $variable_to_function_map)
- Visibility: public
- This method is defined by Factory
- $data array
- $variable_to_function_map array
boolean Factory::getCreatedAndUpdatedColumns(array $data, null $include_columns)
- Visibility: public
- This method is defined by Factory
- $data array
- $include_columns null
boolean Factory::getPermissionColumns(array $data, string $object_user_id, string $created_by_id, string $permission_children_ids, array $include_columns)
- Visibility: public
- This method is defined by Factory
- $data array
- $object_user_id string - UUID
- $created_by_id string - UUID
- $permission_children_ids string - UUID
- $include_columns array
array|boolean Factory::getOptions(string $name, string|integer $parent)
- Visibility: public
- This method is defined by Factory
- $name string
- $parent string|integer
array|boolean Factory::getVariableToFunctionMap(array $data)
- Visibility: public
- This method is defined by Factory
- $data array
integer|boolean Factory::getRecordCount()
- Visibility: public
- This method is defined by Factory
integer|boolean Factory::getCurrentRow(integer $offset)
- Visibility: public
- This method is defined by Factory
- $offset integer
boolean Factory::setQueryStatementTimeout(null $milliseconds)
- Visibility: public
- This method is defined by Factory
- $milliseconds null
array|boolean Factory::getRecordSetColumnList(object $rs)
- Visibility: private
- This method is defined by Factory
- $rs object
boolean|integer|string Factory::castInteger(integer|string $int, string $type)
- Visibility: protected
- This method is defined by Factory
- $int integer|string
- $type string
boolean|integer|string|array Factory::getListSQL(array|string|integer $array, array $ph, string|boolean $cast)
- Visibility: protected
- This method is defined by Factory
- $array array|string|integer
- $ph array
- $cast string|boolean
boolean|string Factory::getDateRangeSQL(string $str, string $column, string $format, boolean $include_blank_dates)
- Visibility: public
- This method is defined by Factory
- $str string
- $column string
- $format string
- $include_blank_dates boolean
string Factory::handleSQLSyntax(string $arg)
SQL where clause Syntax: or % as wildcard.
"" as exact match, no default wildcard and no metaphone
Handles '*' and '%' as wildcards, defaults to wildcard on the end always. If no wildcard is to be added, the last character should be |
- Visibility: protected
- This method is defined by Factory
- $arg string
mixed Factory::stripSQLSyntax(string $arg)
- Visibility: protected
- This method is defined by Factory
- $arg string
string Factory::getSQLToTimeStampFunction()
- Visibility: protected
- This method is defined by Factory
string Factory::getDatabaseType()
- Visibility: protected
- This method is defined by Factory
string Factory::getGEOMAsTextFunction(string $sql)
- Visibility: protected
- This method is defined by Factory
- $sql string
string Factory::getSQLToEpochFunction(string $sql)
- Visibility: protected
- This method is defined by Factory
- $sql string
string Factory::getSQLToTimeFunction(string $sql)
- Visibility: protected
- This method is defined by Factory
- $sql string
string Factory::getSQLStringAggregate(string $sql, string $glue)
- Visibility: protected
- This method is defined by Factory
- $sql string
- $glue string
null|string Factory::getWhereClauseSQL(array|string $columns, array|string $args, string $type, array $ph, string $query_stub, boolean $and)
- Visibility: protected
- This method is defined by Factory
- $columns array|string
- $args array|string
- $type string
- $ph array
- $query_stub string
- $and boolean
boolean|string Factory::parseColumnName(string $column)
- Visibility: private
- This method is defined by Factory
- $column string
boolean|string Factory::getWhereSQL(array $array, boolean $append_where)
- Visibility: protected
- This method is defined by Factory
- $array array
- $append_where boolean
array Factory::getColumnsFromAliases(array $columns, array $aliases)
- Visibility: protected
- This method is defined by Factory
- $columns array
- $aliases array
array Factory::convertFlexArray(array $array)
- Visibility: public
- This method is defined by Factory
- $array array
array Factory::getValidSQLColumns(array $array, boolean $strict, array $additional_fields)
- Visibility: public
- This method is defined by Factory
- $array array
- $strict boolean
- $additional_fields array
boolean|string Factory::getSortSQL(array $array, boolean $strict, array $additional_fields)
- Visibility: protected
- This method is defined by Factory
- $array array
- $strict boolean
- $additional_fields array
array|boolean Factory::getColumnList()
- Visibility: public
- This method is defined by Factory
mixed Factory::getEmptyRecordSet(string $id)
- Visibility: public
- This method is defined by Factory
- $id string - UUID
boolean Factory::getUpdateQuery()
- Visibility: private
- This method is defined by Factory
mixed Factory::getInsertQuery()
- Visibility: private
- This method is defined by Factory
mixed Factory::StartTransaction()
- Visibility: public
- This method is defined by Factory
mixed Factory::FailTransaction()
- Visibility: public
- This method is defined by Factory
mixed Factory::CommitTransaction()
- Visibility: public
- This method is defined by Factory
mixed Factory::setTransactionMode(string $mode)
- Visibility: public
- This method is defined by Factory
- $mode string
string Factory::getTransactionMode()
- Visibility: public
- This method is defined by Factory
boolean Factory::isValid(boolean $ignore_warning)
- Visibility: public
- This method is defined by Factory
- $ignore_warning boolean
boolean Factory::isWarning()
- Visibility: public
- This method is defined by Factory
boolean Factory::getSequenceName()
- Visibility: public
- This method is defined by Factory
boolean|string Factory::getNextInsertId()
- Visibility: public
- This method is defined by Factory
boolean Factory::ExecuteSQL(string $query, array $ph, integer $limit, integer $page)
- Visibility: public
- This method is defined by Factory
- $query string
- $ph array
- $limit integer - Limit the number of records returned
- $page integer - Page number of records to return for pagination
boolean Factory::RetryExecuteSQL(string $query, array $ph, integer $retry_max_attempts, integer $sleep)
- Visibility: public
- This method is defined by Factory
- $query string
- $ph array
- $retry_max_attempts integer
- $sleep integer
array Factory::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.
- Visibility: public
- This method is defined by Factory
boolean Factory::isDataDifferent($key, $data_diff, null $type_id, null $new_data)
Used to check the differences between a single key in the $old_data vs. $data arrays.
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.
- Visibility: public
- This method is defined by Factory
- $key mixed - string
- $data_diff mixed - array
- $type_id null - string
- $new_data null - mixed
boolean|integer|string Factory::Save(boolean $reset_data, boolean $force_lookup)
- Visibility: public
- This method is defined by Factory
- $reset_data boolean
- $force_lookup boolean
boolean Factory::Delete()
- Visibility: public
- This method is defined by Factory
array|boolean Factory::getIDSByListFactory(object $lf)
- Visibility: public
- This method is defined by Factory
- $lf object
boolean Factory::bulkDelete(string|array $ids)
- Visibility: public
- This method is defined by Factory
- $ids string|array - UUID
boolean Factory::clearGeoCode(array $data_diff)
- Visibility: public
- This method is defined by Factory
- $data_diff array
array|null Factory::clearNonMappedData(array|null $data)
Removes array elements from $data that are not in the function map.
- Visibility: public
- This method is defined by Factory
- $data array|null
boolean Factory::clearData()
- Visibility: public
- This method is defined by Factory
boolean Factory::clearOldData()
- Visibility: public
- This method is defined by Factory
\FactoryListIterator Factory::getIterator()
- Visibility: public
- This method is defined by Factory
mixed Factory::getCurrent()
- Visibility: public
- This method is defined by Factory