interface VersionableExtension (View source)

Minimum level extra fields required by extensions that are versonable

Methods

public
bool
isVersionedTable(string $table)

Determine if the given table is versionable

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

Update fields and indexes for the versonable suffix table

public
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