|
dolibarr 20.0.5
|
Class to manage certif authority. More...
Public Member Functions | |
| __construct ($db) | |
| Constructor. | |
| getLocalBlockChain () | |
| Get the blockchain. | |
| getBlockchainHash () | |
| Get hash of the block chain to check. | |
| checkBlockchain ($hash) | |
| Get hash of the block chain to check. | |
| addBlock ($block) | |
| Add a new block to the chain. | |
| checkBlock ($block) | |
| hash already exist into chain ? | |
| fetch ($id, $signature='') | |
| Get object from database. | |
| create ($user) | |
| Create authority in database. | |
| update ($user) | |
| Create authority in database. | |
| syncSignatureWithAuthority () | |
| For cron to sync to authority. | |
Class to manage certif authority.
Definition at line 21 of file authority.class.php.
| BlockedLogAuthority::__construct | ( | $db | ) |
Constructor.
Definition at line 69 of file authority.class.php.
| BlockedLogAuthority::addBlock | ( | $block | ) |
Add a new block to the chain.
| string | $block | new block to chain |
Definition at line 125 of file authority.class.php.
| BlockedLogAuthority::checkBlock | ( | $block | ) |
hash already exist into chain ?
| string | $block | new block to chain |
Definition at line 136 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 114 of file authority.class.php.
References getBlockchainHash().
| BlockedLogAuthority::create | ( | $user | ) |
Create authority in database.
| User | $user | Object user that create |
Definition at line 211 of file authority.class.php.
References 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 159 of file authority.class.php.
References dol_syslog(), and ref.
| BlockedLogAuthority::getBlockchainHash | ( | ) |
Get hash of the block chain to check.
Definition at line 103 of file authority.class.php.
Referenced by checkBlockchain().
| BlockedLogAuthority::getLocalBlockChain | ( | ) |
| BlockedLogAuthority::syncSignatureWithAuthority | ( | ) |
For cron to sync to authority.
Definition at line 291 of file authority.class.php.
References getDolGlobalString(), and getURLContent().
| BlockedLogAuthority::update | ( | $user | ) |
Create authority in database.
| User | $user | Object user that create |
Definition at line 258 of file authority.class.php.
References dol_syslog().