RecordManagerFactory
in package
Tags
Table of Contents
- ACTION_DELETE = 'delete'
- ACTION_INSERT = 'insert'
- ACTION_READ = 'read'
- ACTION_UPDATE = 'update'
- TYPE_ADDRESS = 'address'
- TYPE_ESTATE = 'estate'
- TYPE_FORM = 'form'
- $_genericClassTables : array<string|int, mixed>
- $_mapping : array<string|int, mixed>
- create() : RecordManager
- Fix to make this mockable
- createByTypeAndAction() : RecordManager
- createRecordManagerInsertGeneric() : RecordManagerInsertGeneric
- getGenericClassTables() : array<string|int, mixed>
Constants
ACTION_DELETE
public
mixed
ACTION_DELETE
= 'delete'
ACTION_INSERT
public
mixed
ACTION_INSERT
= 'insert'
ACTION_READ
public
mixed
ACTION_READ
= 'read'
ACTION_UPDATE
public
mixed
ACTION_UPDATE
= 'update'
TYPE_ADDRESS
public
mixed
TYPE_ADDRESS
= 'address'
TYPE_ESTATE
public
mixed
TYPE_ESTATE
= 'estate'
TYPE_FORM
public
mixed
TYPE_FORM
= 'form'
Properties
$_genericClassTables
private
static array<string|int, mixed>
$_genericClassTables
= [self::TYPE_ADDRESS => \onOffice\WPlugin\Record\RecordManager::TABLENAME_LIST_VIEW_ADDRESS, self::TYPE_ESTATE => \onOffice\WPlugin\Record\RecordManager::TABLENAME_LIST_VIEW, self::TYPE_FORM => \onOffice\WPlugin\Record\RecordManager::TABLENAME_FORMS]
$_mapping
private
static array<string|int, mixed>
$_mapping
= [self::TYPE_ADDRESS => [self::ACTION_READ => \onOffice\WPlugin\Record\RecordManagerReadListViewAddress::class, self::ACTION_INSERT => \onOffice\WPlugin\Record\RecordManagerInsertGeneric::class, self::ACTION_UPDATE => \onOffice\WPlugin\Record\RecordManagerUpdateListViewAddress::class, self::ACTION_DELETE => \onOffice\WPlugin\Record\RecordManagerDeleteListViewAddress::class], self::TYPE_ESTATE => [self::ACTION_READ => \onOffice\WPlugin\Record\RecordManagerReadListViewEstate::class, self::ACTION_INSERT => \onOffice\WPlugin\Record\RecordManagerInsertGeneric::class, self::ACTION_UPDATE => \onOffice\WPlugin\Record\RecordManagerUpdateListViewEstate::class, self::ACTION_DELETE => \onOffice\WPlugin\Record\RecordManagerDeleteListViewEstate::class], self::TYPE_FORM => [self::ACTION_READ => \onOffice\WPlugin\Record\RecordManagerReadForm::class, self::ACTION_INSERT => \onOffice\WPlugin\Record\RecordManagerInsertGeneric::class, self::ACTION_UPDATE => \onOffice\WPlugin\Record\RecordManagerUpdateForm::class, self::ACTION_DELETE => \onOffice\WPlugin\Record\RecordManagerDeleteForm::class]]
Methods
create()
Fix to make this mockable
public
create(string $type, string $action[, int $recordId = null ]) : RecordManager
Parameters
- $type : string
- $action : string
- $recordId : int = null
Return values
RecordManager —createByTypeAndAction()
public
static createByTypeAndAction(string $type, string $action[, int $recordId = null ]) : RecordManager
Parameters
- $type : string
- $action : string
- $recordId : int = null
Tags
Return values
RecordManager —createRecordManagerInsertGeneric()
public
createRecordManagerInsertGeneric(string $mainTableName) : RecordManagerInsertGeneric
Parameters
- $mainTableName : string
Return values
RecordManagerInsertGeneric —getGenericClassTables()
public
static getGenericClassTables() : array<string|int, mixed>