interface VersionableExtension

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

at line 16
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

at line 25
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

at line 34
string extendWithSuffix(string $table)

Modify table name with suffix.

Should return $table if not modified.

Parameters

string $table

Return Value

string