|
libSmalldb
v2.0.2
|
Public Member Functions | |
| __construct ($elementClassName=AbstractGraphElement\class) | |
| ElementAttrIndex constructor. More... | |
| getElementById (string $id) | |
| createAttrIndex (string $key) | |
| hasAttrIndex (string $key) | |
| Returns true if the attribute is indexed. More... | |
| insertElement (AbstractGraphElement $element) | |
| Insert element into index (all keys has changed). More... | |
| removeElement (AbstractGraphElement $element) | |
| Remove element from index. More... | |
| update (string $key, $oldValue, $newValue, AbstractGraphElement $element) | |
| Update indices to match the changed attribute of the element. More... | |
| getAllElements () | |
| Get all elements. More... | |
| getElements (string $key, $value) | |
| Get elements by the value of the attribute. More... | |
| __construct | ( | $elementClassName = AbstractGraphElement\class | ) |
ElementAttrIndex constructor.
| getElementById | ( | string | $id | ) |
| createAttrIndex | ( | string | $key | ) |
| string | $key | Attribute to index |
| hasAttrIndex | ( | string | $key | ) |
Returns true if the attribute is indexed.
| insertElement | ( | AbstractGraphElement | $element | ) |
Insert element into index (all keys has changed).
| removeElement | ( | AbstractGraphElement | $element | ) |
Remove element from index.
| update | ( | string | $key, |
| $oldValue, | |||
| $newValue, | |||
| AbstractGraphElement | $element | ||
| ) |
Update indices to match the changed attribute of the element.
| getAllElements | ( | ) |
Get all elements.
| getElements | ( | string | $key, |
| $value | |||
| ) |
Get elements by the value of the attribute.
1.8.13