ExternalSystemIdUtil Class Reference

Static Public Member Functions

static updateByModel (RedBeanModel $model, $externalSystemId)
static addExternalIdColumnIfMissing ($tableName, $maxLength=255, $columnName=null)

Data Fields

const EXTERNAL_SYSTEM_ID_COLUMN_NAME = 'external_system_id'

Detailed Description

Helper utility for handling the external system id and models.

Definition at line 40 of file ExternalSystemIdUtil.php.

Member Function Documentation

static updateByModel ( RedBeanModel model,
) [static]

Given a model and external system id, update the external system id in the database for that model

object $model
string $externalSystemId

Definition at line 53 of file ExternalSystemIdUtil.php.

static addExternalIdColumnIfMissing ( tableName,
maxLength = 255,
columnName = null 
) [static]

Adds externalSystemId column to specific table if it does not exist


Definition at line 68 of file ExternalSystemIdUtil.php.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Sep 25 07:10:25 2017