onOffice WP Plugin

RecordManagerFactory
in package

Tags
url

http://www.onoffice.de

copyright

2003-2018, onOffice(R) GmbH

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

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
throws
Exception
Return values
RecordManager

getGenericClassTables()

public static getGenericClassTables() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results