dolibarr 18.0.6
|
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 64 of file authority.class.php.
BlockedLogAuthority::addBlock | ( | $block | ) |
Add a new block to the chain.
string | $block | new block to chain |
Definition at line 123 of file authority.class.php.
BlockedLogAuthority::checkBlock | ( | $block | ) |
hash already exist into chain ?
string | $block | new block to chain |
Definition at line 135 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 111 of file authority.class.php.
References getBlockchainHash().
BlockedLogAuthority::create | ( | $user | ) |
Create authority in database.
User | $user | Object user that create |
Definition at line 212 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 99 of file authority.class.php.
Referenced by checkBlockchain().
BlockedLogAuthority::getLocalBlockChain | ( | ) |
BlockedLogAuthority::syncSignatureWithAuthority | ( | ) |
For cron to sync to authority.
Definition at line 294 of file authority.class.php.
References getURLContent().
BlockedLogAuthority::update | ( | $user | ) |
Create authority in database.
User | $user | Object user that create |
Definition at line 260 of file authority.class.php.
References dol_syslog().