|
dolibarr
x.y.z
|
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 | ) |
Constructor.
Definition at line 53 of file authority.class.php.
| BlockedLogAuthority::addBlock | ( | $block | ) |
Add a new block to the chain.
| string | $block | new block to chain |
Definition at line 112 of file authority.class.php.
| BlockedLogAuthority::checkBlock | ( | $block | ) |
hash already exist into chain ?
| string | $block | new block to chain |
Definition at line 124 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 100 of file authority.class.php.
| BlockedLogAuthority::create | ( | $user | ) |
Create authority in database.
| User | $user | Object user that create |
Definition at line 201 of file authority.class.php.
| 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 148 of file authority.class.php.
| BlockedLogAuthority::getBlockchainHash | ( | ) |
Get hash of the block chain to check.
Definition at line 88 of file authority.class.php.
| BlockedLogAuthority::getLocalBlockChain | ( | ) |
| BlockedLogAuthority::syncSignatureWithAuthority | ( | ) |
For cron to sync to authority.
Definition at line 283 of file authority.class.php.
| BlockedLogAuthority::update | ( | $user | ) |
Create authority in database.
| User | $user | Object user that create |
Definition at line 249 of file authority.class.php.