interface VersionableExtension (View source)

Minimum level extra fields required by extensions that are versonable

Methods

bool
isVersionedTable(string $table)

Determine if the given table is versionable

updateVersionableFields(string $suffix, array $fields, array $indexes)

Update fields and indexes for the versonable suffix table

string
extendWithSuffix(string $table)

Modify table name with suffix.

Details

bool isVersionedTable(string $table)

Determine if the given table is versionable

Parameters

string $table

Return Value

bool

True if versioned tables should be built for the given suffix

updateVersionableFields(string $suffix, array $fields, array $indexes)

Update fields and indexes for the versonable suffix table

Parameters

string $suffix

Table suffix being built

array $fields

List of fields in this model

array $indexes

List of indexes in this model

string extendWithSuffix(string $table)

Modify table name with suffix.

Should return $table if not modified.

Parameters

string $table

Return Value

string