[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Source view] [Print] [Project Stats]
(no description)
Copyright: | (C) 2022 Open Source Matters, Inc. |
License: | GNU General Public License version 2 or later; see LICENSE.txt |
File Size: | 423 lines (14 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
MfaTable:: (9 methods):
__construct()
store()
load()
delete()
decryptOptions()
switchDefaultRecord()
generateBackupCodes()
afterDelete()
getNumRecords()
__construct(DatabaseDriver $db, DispatcherInterface $dispatcher = null) X-Ref |
Table constructor param: DatabaseDriver $db Database driver object param: DispatcherInterface|null $dispatcher Events dispatcher object |
store($updateNulls = true) X-Ref |
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: boolean $updateNulls True to update fields even if they are null. return: boolean True on success. |
load($keys = null, $reset = true) X-Ref |
No description |
delete($pk = null) X-Ref |
Method to delete a row from the database table by primary key value. param: mixed $pk An optional primary key value to delete. If not set the instance property value is used. return: boolean True on success. |
decryptOptions() X-Ref |
Decrypt the possibly encrypted options return: void |
switchDefaultRecord() X-Ref |
If this record is set to be the default, unset the default flag from the other records for the same user. return: void |
generateBackupCodes() X-Ref |
Regenerate backup code is the flag is set. return: void |
afterDelete($pk) X-Ref |
Runs after successfully deleting a record param: int|array $pk The promary key of the deleted record return: void |
getNumRecords(int $userId) X-Ref |
Get the number of MFA records for a give user ID param: int $userId The user ID to check return: integer |
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |