|
| __construct (DatabaseDriver $db) |
|
| store ($updateNulls=false) |
|
| getSha1 ($jsonData, ContentType $typeTable) |
|
| getHashMatch () |
|
| deleteOldVersions ($maxVersions) |
|
| __construct ($table, $key, DatabaseDriver $db, DispatcherInterface $dispatcher=null) |
|
| getFields ($reload=false) |
|
| appendPrimaryKeys ($query, $pk=null) |
|
| getTableName () |
|
| getKeyName ($multiple=false) |
|
| getId () |
|
| getDbo () |
|
| setDbo (DatabaseDriver $db) |
|
| setRules ($input) |
|
| getRules () |
|
| reset () |
|
| bind ($src, $ignore=array()) |
|
| load ($keys=null, $reset=true) |
|
| check () |
|
| save ($src, $orderingFilter='', $ignore='') |
|
| checkOut ($userId, $pk=null) |
|
| checkIn ($pk=null) |
|
| hasPrimaryKey () |
|
| hit ($pk=null) |
|
| isCheckedOut ($with=0, $against=null) |
|
| getNextOrder ($where='') |
|
| getPrimaryKey (array $keys=array()) |
|
| reorder ($where='') |
|
| move ($delta, $where='') |
|
| publish ($pks=null, $state=1, $userId=0) |
|
| getColumnAlias ($column) |
|
| setColumnAlias ($column, $columnAlias) |
|
| hasField ($key) |
|
| __construct ($properties=null) |
|
| __toString () |
|
| def ($property, $default=null) |
|
| get ($property, $default=null) |
|
| getProperties ($public=true) |
|
| getError ($i=null, $toString=true) |
|
| getErrors () |
|
| set ($property, $value=null) |
|
| setProperties ($properties) |
|
| setError ($error) |
|
| delete ($pk=null) |
|
| getKeyName () |
|
| setDispatcher (DispatcherInterface $dispatcher) |
|
Content History table.
- Depuis
- 3.2
◆ __construct()
◆ deleteOldVersions()
deleteOldVersions |
( |
|
$maxVersions | ) |
|
Utility method to remove the oldest versions of an item, saving only the most recent versions.
- Paramètres
-
integer | $maxVersions | The maximum number of versions to save. All others will be deleted. |
- Renvoie
- boolean true on success, false on failure.
- Depuis
- 3.2
Références $db, $itemId, $query, $result, et ParameterType\STRING.
◆ getHashMatch()
Utility method to get a matching row based on the hash value and id columns. This lets us check to make sure we don't save duplicate versions.
- Renvoie
- string SHA1 hash on success. Empty string on failure.
- Depuis
- 3.2
Références $db, $itemId, $query, et ParameterType\STRING.
◆ getSha1()
Utility method to get the hash after removing selected values. This lets us detect changes other than modified date (which will change on every save).
- Paramètres
-
mixed | $jsonData | Either an object or a string with json-encoded data |
ContentType | $typeTable | Table object with data for this content type |
- Renvoie
- string SHA1 hash on success. Empty string on failure.
- Depuis
- 3.2
Références $name, $options, $value, et null.
◆ store()
store |
( |
|
$updateNulls = false | ) |
|
◆ $convertToInt
◆ $ignoreChanges
La documentation de cette classe a été générée à partir du fichier suivant :