|
| __construct ($db) |
|
| store ($updateNulls=false) |
|
| getSha1 ($jsonData, ContentType $typeTable) |
|
| getHashMatch () |
|
| deleteOldVersions ($maxVersions) |
|
| __construct ($table, $key, $db) |
|
| attachObserver (\JObserverInterface $observer) |
|
| getObserverOfClass ($observerClass) |
|
| getFields ($reload=false) |
|
| appendPrimaryKeys ($query, $pk=null) |
|
| getTableName () |
|
| getKeyName ($multiple=false) |
|
| getDbo () |
|
| setDbo ($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) |
|
| attachObserver (JObserverInterface $observer) |
|
Content History table.
- Depuis
- 3.2
◆ __construct()
Constructor
- Paramètres
-
\JDatabaseDriver | $db | A database connector object |
- Depuis
- 3.1
Références $db.
◆ 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, et $query.
◆ 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, et $query.
◆ 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, json_encode, et null.
◆ store()
store |
( |
|
$updateNulls = false | ) |
|
Overrides Table::store to set modified hash, user id, and save date.
- Paramètres
-
boolean | $updateNulls | True to update fields even if they are null. |
- Renvoie
- boolean True on success.
- Depuis
- 3.2
Références Table\getInstance(), et null.
◆ $convertToInt
◆ $ignoreChanges
La documentation de cette classe a été générée à partir du fichier suivant :