PHP Class VersionPress\Storages\StorageFactory

ファイルを表示 Open project: versionpress/versionpress Class Usage Examples

Public Methods

Method Description
__construct ( string $vpdbDir, DbSchemaInfo $dbSchemaInfo, Database $database, string[] $taxonomies, ChangeInfoFactory $changeInfoFactory, TableSchemaStorage $tableSchemaStorage )
getAllSupportedStorages ( )
getStorage ( string $entityName ) : Storage | null Returns storage by given entity type

Private Methods

Method Description
resolveStorageForEntity ( $entityName )
resolveStorageForMnReference ( $referenceDetails )

Method Details

__construct() public method

public __construct ( string $vpdbDir, DbSchemaInfo $dbSchemaInfo, Database $database, string[] $taxonomies, ChangeInfoFactory $changeInfoFactory, TableSchemaStorage $tableSchemaStorage )
$vpdbDir string Path to the `wp-content/vpdb` directory
$dbSchemaInfo VersionPress\Database\DbSchemaInfo Passed to storages
$database VersionPress\Database\Database
$taxonomies string[] List of taxonomies used on current site
$changeInfoFactory VersionPress\ChangeInfos\ChangeInfoFactory
$tableSchemaStorage VersionPress\Database\TableSchemaStorage

getAllSupportedStorages() public method

getStorage() public method

Returns storage by given entity type
public getStorage ( string $entityName ) : Storage | null
$entityName string
return Storage | null