K2hash::addAttrPluginLib
Adds the user-defined library to handle attributes
Description
public bool K2hash::addAttrPluginLib ( string $libfile )
Adds the user-defined library to handle attributes. k2hash supports for adding user-defined attributes to keys by using this method.
Parameters
- libfile
Specifies the path to the dynamic linked library.
Return Values
Returns true on success or false on failure.
Examples
- Example 1 - Adds the user-defined library to handle attributes
<?php
$k2hash = new K2hash();
$k2hash->openMem();
var_dump($k2hash->addAttrPluginLib("/tmp/libk2htestattr.so"));
$k2hash->close();
?>
The above example will output:
bool(true)
See Also
- K2hash::addAttr - Adds the attribute to the key
- K2hash::addAttrCryptPass - Adds the password to encrypt values
- K2hash::cleanCommonAttribute - Initializes the common attributes
- K2hash::getAttrInfos - Prints the attribute information
- K2hash::getAttrs - Gets attributes of the key
- K2hash::getAttrValue - Gets an attribute value of the attribute key of the key
- K2hash::getAttrVersionInfos - Prints the attribute library version