mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
27 lines
683 B
PHP
27 lines
683 B
PHP
<?php
|
|
|
|
namespace SilverStripe\ORM\Versioning;
|
|
|
|
/**
|
|
* Minimum level extra fields required by extensions that are versonable
|
|
*/
|
|
interface VersionableExtension {
|
|
|
|
/**
|
|
* Determine if the given table is versionable
|
|
*
|
|
* @param string $table
|
|
* @return bool True if versioned tables should be built for the given suffix
|
|
*/
|
|
public function isVersionedTable($table);
|
|
|
|
/**
|
|
* Update fields and indexes for the versonable suffix table
|
|
*
|
|
* @param string $suffix Table suffix being built
|
|
* @param array $fields List of fields in this model
|
|
* @param array $indexes List of indexes in this model
|
|
*/
|
|
public function updateVersionableFields($suffix, &$fields, &$indexes);
|
|
}
|