|
dolibarr
13.0.2
|
Class to manage certif authority. More...
Public Member Functions | |
| __construct ($db) | |
| Constructor. More... | |
| getLocalBlockChain () | |
| Get the blockchain. More... | |
| getBlockchainHash () | |
| Get hash of the block chain to check. More... | |
| checkBlockchain ($hash) | |
| Get hash of the block chain to check. More... | |
| addBlock ($block) | |
| Add a new block to the chain. More... | |
| checkBlock ($block) | |
| hash already exist into chain ? More... | |
| fetch ($id, $signature= '') | |
| Get object from database. More... | |
| create ($user) | |
| Create authority in database. More... | |
| update ($user) | |
| Create authority in database. More... | |
| syncSignatureWithAuthority () | |
| For cron to sync to authority. More... | |
Class to manage certif authority.
Definition at line 21 of file authority.class.php.
| BlockedLogAuthority::__construct | ( | $db | ) |
| BlockedLogAuthority::addBlock | ( | $block | ) |
Add a new block to the chain.
| string | $block | new block to chain |
Definition at line 110 of file authority.class.php.
| BlockedLogAuthority::checkBlock | ( | $block | ) |
hash already exist into chain ?
| string | $block | new block to chain |
Definition at line 122 of file authority.class.php.
| BlockedLogAuthority::checkBlockchain | ( | $hash | ) |
Get hash of the block chain to check.
| string | $hash | hash md5 of blockchain to test |
Definition at line 98 of file authority.class.php.
References getBlockchainHash().
| BlockedLogAuthority::create | ( | $user | ) |
Create authority in database.
| User | $user | Object user that create |
Definition at line 197 of file authority.class.php.
References db, and dol_syslog().
| BlockedLogAuthority::fetch | ( | $id, | |
$signature = '' |
|||
| ) |
Get object from database.
| int | $id | Id of object to load |
| string | $signature | Signature of object to load |
Definition at line 144 of file authority.class.php.
References $resql, db, and dol_syslog().
| BlockedLogAuthority::getBlockchainHash | ( | ) |
Get hash of the block chain to check.
Definition at line 86 of file authority.class.php.
Referenced by checkBlockchain().
| BlockedLogAuthority::getLocalBlockChain | ( | ) |
Get the blockchain.
Definition at line 63 of file authority.class.php.
References db.
| BlockedLogAuthority::syncSignatureWithAuthority | ( | ) |
For cron to sync to authority.
Definition at line 282 of file authority.class.php.
References db.
| BlockedLogAuthority::update | ( | $user | ) |
Create authority in database.
| User | $user | Object user that create |
Definition at line 247 of file authority.class.php.
References db, and dol_syslog().