|
| __construct (DatabaseDriver $db, DispatcherInterface $dispatcher=null) |
|
| store ($updateNulls=true) |
|
| load ($keys=null, $reset=true) |
|
| delete ($pk=null) |
|
| __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) |
|
| getKeyName () |
|
| setDispatcher (DispatcherInterface $dispatcher) |
|
◆ __construct()
◆ afterDelete()
Runs after successfully deleting a record
- Paramètres
-
int | array | $pk | The promary key of the deleted record |
- Renvoie
- void
- Depuis
- 4.2.0
This was the second to last MFA record in the database (the last one is the backupcodes
). Therefore, we need to delete the remaining entry and go away. We don't trigger this if the Method we are deleting was the backupcodes
because we might just be regenerating the backup codes.
Références $db, $id, $query, Joomla\CMS\MVC\Model\getDbo(), et ParameterType\INTEGER.
◆ decryptOptions()
Decrypt the possibly encrypted options
- Renvoie
- void
- Depuis
- 4.2.0
Références $this.
◆ delete()
◆ getNumRecords()
getNumRecords |
( |
int |
$userId | ) |
|
|
private |
◆ load()
Method to load a row from the database by primary key and bind the fields to the Table instance properties.
- Paramètres
-
mixed | $keys | An optional primary key value to load the row by, or an array of fields to match. If not set the instance property value is used. |
boolean | $reset | True to reset the default values before loading the new row. |
- Renvoie
- boolean True if successful. False if row not found.
- Depuis
- 4.2.0
- Exceptions
-
Implémente TableInterface.
Références $result.
◆ store()
store |
( |
|
$updateNulls = true | ) |
|
Method to store a row in the database from the Table instance properties.
If a primary key value is set the row with that primary key value will be updated with the instance property values. If no primary key value is set a new row will be inserted into the database with the properties from the Table instance.
- Paramètres
-
boolean | $updateNulls | True to update fields even if they are null. |
- Renvoie
- boolean True on success.
- Depuis
- 4.2.0
Implémente TableInterface.
Références $id, $result, false, Date\getInstance(), method, et null.
◆ switchDefaultRecord()
If this record is set to be the default, unset the default flag from the other records for the same user.
- Renvoie
- void
- Depuis
- 4.2.0
This record is marked as default, therefore we need to unset the default flag from all other records for this user.
Références $db, $query, Joomla\CMS\MVC\Model\getDbo(), et ParameterType\INTEGER.
◆ $_supportNullValue
$_supportNullValue = true |
|
protected |
◆ $deleteFlags
◆ $encryptService
La documentation de cette classe a été générée à partir du fichier suivant :