package API\Policy
inherited_from \APIFactory

 Methods

__construct()

__construct() 
inherited_from \APIFactory::__construct()

__construct()

__construct() 
Inherited

convertAPIReturnHandlerToValidatorObject()

convertAPIReturnHandlerToValidatorObject($api_retarr, $validator_obj = FALSE
Inherited

Parameters

$api_retarr

$validator_obj

convertToMultipleRecords()

convertToMultipleRecords($data) 
Inherited

Parameters

$data

convertToSingleRecord()

convertToSingleRecord($data) 
Inherited

Parameters

$data

Copy one or more accrual_policyes.

copyAccrualPolicyAccount(array $data) : array

Parameters

$data

array

accrual_policy IDs

Returns

array

Delete one or more accrual_policys.

deleteAccrualPolicyAccount(array $data) : array

Parameters

$data

array

accrual_policy data

Returns

array

exportAccrualPolicyAccount()

exportAccrualPolicyAccount(string $format = 'csv', null $data = NULL, boolean $disable_paging = TRUE) : array | boolean

Parameters

$format

string

$data

null

$disable_paging

boolean

Returns

arrayboolean

downloaded a result_set as a csv.

exportRecords($format, $file_name, $result, $filter_columns) : array | boolean
Inherited

Parameters

$format

$file_name

$result

$filter_columns

Returns

arrayboolean

getAMFMessageID()

getAMFMessageID() 
Inherited

Get accrual_policy data for one or more accrual_policyes.

getAccrualPolicyAccount(array $data = NULL, $disable_paging = FALSE) : array

Parameters

$data

array

filter data

$disable_paging

Returns

array

Get default accrual_policy data for creating new accrual_policyes.

getAccrualPolicyAccountDefaultData() : array

Returns

array

Get only the fields that are common across all records in the search criteria. Used for Mass Editing of records.

getCommonAccrualPolicyAccountData(array $data) : array

Parameters

$data

array

filter data

Returns

array

getCurrentCompanyObject()

getCurrentCompanyObject() 
Inherited

getCurrentUserObject()

getCurrentUserObject() 
Inherited

getCurrentUserPreferenceObject()

getCurrentUserPreferenceObject() 
Inherited

getMainClassObject()

getMainClassObject() 
Inherited

getNextInsertID()

getNextInsertID() 
Inherited

Get options for dropdown boxes.

getOptions(string $name = FALSE, mixed $parent = NULL) : array
inherited_from \APIFactory::getOptions()

Parameters

$name

string

Name of options to return, ie: 'columns', 'type', 'status'

$parent

mixed

Parent name/ID of options to return if data is in hierarchical format. (ie: Province)

Returns

array

getOptions()

getOptions($name = FALSE, $parent = NULL
Inherited

Parameters

$name

$parent

getPagerData()

getPagerData() 
Inherited

getPermissionChildren()

getPermissionChildren() 
Inherited

getPermissionObject()

getPermissionObject() 
Inherited

getProgressBarObject()

getProgressBarObject() 
Inherited

getProtocolVersion()

getProtocolVersion() 
Inherited

getVariableToFunctionMap()

getVariableToFunctionMap($name, $parent = NULL
Inherited

Parameters

$name

$parent

handlePermissionFilterColumns()

handlePermissionFilterColumns($filter_columns, $allowed_columns) 
Inherited

Parameters

$filter_columns

$allowed_columns

handleRecordValidationResults()

handleRecordValidationResults($validator, $validator_stats, $key, $save_result) 
Inherited

Parameters

$validator

$validator_stats

$key

$save_result

initializeFilterAndPager()

initializeFilterAndPager($data, $disable_paging = FALSE
Inherited

Parameters

$data

$disable_paging

returnHandler()

returnHandler($retval = TRUE, $code = FALSE, $description = FALSE, $details = FALSE, $validator_stats = FALSE, $user_generic_status_batch_id = FALSE, $request_data = FALSE
Inherited

Parameters

$retval

$code

$description

$details

$validator_stats

$user_generic_status_batch_id

$request_data

setAMFMessageID()

setAMFMessageID($id) 
Inherited

Parameters

$id

Set accrual_policy data for one or more accrual_policyes.

setAccrualPolicyAccount(array $data, $validate_only = FALSE, $ignore_warning = TRUE) : array

Parameters

$data

array

accrual_policy data

$validate_only

$ignore_warning

Returns

array

setMainClassObject()

setMainClassObject($obj) 
Inherited

Parameters

$obj

setPagerObject()

setPagerObject($lf) 
Inherited

Parameters

$lf

setValidationArray()

setValidationArray($primary_validator, $secondary_validator, $tertiary_validator = FALSE
Inherited

Parameters

$primary_validator

$secondary_validator

$tertiary_validator

stripReturnHandler()

stripReturnHandler($retarr) 
Inherited

Parameters

$retarr

Validate accrual_policy data for one or more accrual_policyes.

validateAccrualPolicyAccount(array $data) : array

Parameters

$data

array

accrual_policy data

Returns

array

 Properties

 

$data

$data 

Default

array()
 

$AMF_message_id

$AMF_message_id 

Default

NULL
 

$current_company

$current_company 

Default

NULL
 

$current_user

$current_user 

Default

NULL
 

$current_user_prefs

$current_user_prefs 

Default

NULL
 

$main_class

$main_class 

Default

'AccrualPolicyAccountFactory'
 

$main_class_obj

$main_class_obj 

Default

NULL
 

$pager_obj

$pager_obj 

Default

NULL
 

$permission

$permission 

Default

NULL
 

$progress_bar_obj

$progress_bar_obj 

Default

NULL