Builds a table row representation for a SemanticData object.
GNU GPL v2+
- Since
- 3.0
- Author
- mwjames
◆ __construct()
SMW\SQLStore\PropertyTableRowMapper::__construct |
( |
Store |
$store | ) |
|
◆ makeHash()
SMW\SQLStore\PropertyTableRowMapper::makeHash |
( |
array |
$array | ) |
|
Create a string key for hashing an array of values that represents a row in the database. Used to eliminate duplicates and to support diff computation. This is not stored in the database, so it can be changed without causing any problems with legacy data.
- Since
- 3.0
- Parameters
-
- Returns
- string
◆ mapToRows()
SMW\SQLStore\PropertyTableRowMapper::mapToRows |
( |
|
$sid, |
|
|
SemanticData |
$semanticData |
|
) |
| |
Create an array of rows to insert into property tables in order to store the given SemanticData. The given $sid (subject page id) is used directly and must belong to the subject of the data container. Sortkeys are ignored since they are not stored in a property table but in the ID table.
The returned array uses property table names as keys and arrays of table rows as values. Each table row is an array mapping column names to values.
- Note
- Property tables that do not use ids as subjects are ignored. This just excludes redirects that are handled differently anyway; it would not make a difference to include them here.
- Since
- 3.0
- Parameters
-
- Returns
- array
◆ newChangeOp()
SMW\SQLStore\PropertyTableRowMapper::newChangeOp |
( |
|
$id, |
|
|
SemanticData |
$semanticData |
|
) |
| |
- Since
- 3.0
- Parameters
-
- Returns
- ChangeOp
The documentation for this class was generated from the following file:
- PropertyTableRowMapper.php