Method |
Description |
|
__construct ( string[] | Traversable $schemaFiles, string $prefix, integer $dbVersion ) |
|
|
getAllEntityNames ( ) : array |
Gets all entities defined by the schema |
|
getAllMnReferences ( ) |
|
|
getAllReferences ( ) : array |
Returns a map where key is a name of an entity and value is a list of names of referenced entities. |
|
getEntityInfo ( $entityName ) : EntityInfo |
Returns EntityInfo for a given entity name (e.g., "post" or "comment") |
|
getEntityInfoByPrefixedTableName ( $tableName ) : EntityInfo |
Returns EntityInfo for a given table name with prefix (e.g., "wp_posts" or "wp_commentmeta") |
|
getEntityInfoByTableName ( $tableName ) : EntityInfo |
Returns EntityInfo for a given table name (e.g., "posts" or "commentmeta") |
|
getIntervalsForFrequentlyWrittenEntities ( ) |
|
|
getMnReferenceDetails ( $junctionEntity ) |
|
|
getPrefixedTableName ( $entityName ) : string |
For something like "post", returns "wp_posts" |
|
getRulesForFrequentlyWrittenEntities ( ) : array |
Returns all rules for frequently written entities grouped by entity name. |
|
getTableName ( $entityName ) : string |
For something like "post", returns "posts" |
|
isChildEntity ( $entityName ) : boolean |
Returns true if entity has a parent reference. |
|
isEntity ( $entityName ) : boolean |
Returns true if given name is an entity (is defined in schema). |
|
refreshDbSchema ( $schemaFiles ) |
|
|
trimPrefix ( $tableName ) |
|
|