GNU GPL v2+
- Since
- 2.3
- Author
- mwjames
◆ __construct()
SMW\HierarchyLookup::__construct |
( |
Store |
$store, |
|
|
Cache |
$cache |
|
) |
| |
◆ findNearbySuperCategories()
SMW\HierarchyLookup::findNearbySuperCategories |
( |
DIWikiPage |
$category | ) |
|
◆ findSubcategoryList()
SMW\HierarchyLookup::findSubcategoryList |
( |
DIWikiPage |
$category | ) |
|
◆ findSubpropertyList()
SMW\HierarchyLookup::findSubpropertyList |
( |
DIProperty |
$property | ) |
|
◆ getConsecutiveHierarchyList()
SMW\HierarchyLookup::getConsecutiveHierarchyList |
( |
|
$id, |
|
|
|
$hierarchyType = self::TYPE_SUB |
|
) |
| |
- Since
- 3.0
- Parameters
-
- Returns
- DIProperty[]|DIWikiPage[]|[]
◆ hasSubcategory()
SMW\HierarchyLookup::hasSubcategory |
( |
DIWikiPage |
$category | ) |
|
- Since
- 2.3
- Parameters
-
- Returns
- boolean
◆ hasSubproperty()
SMW\HierarchyLookup::hasSubproperty |
( |
DIProperty |
$property | ) |
|
- Since
- 2.3
- Parameters
-
- Returns
- boolean
◆ invalidateCache()
SMW\HierarchyLookup::invalidateCache |
( |
DIProperty |
$property | ) |
|
Remove the global hierarchy cache in the event that some entity was annotated (or removed) with the Subproperty of
/ Subcategory of
property, and while this purges the entire cache we ensure that the hierarchy lookup is always correct without loosing too much sleep over a more fine-grained caching strategy.
- Since
- 3.2
- Parameters
-
◆ registerPropertyChangeListener()
- Since
- 3.0
- Parameters
-
PropertyChangeListener | $changeListener | |
◆ setSubcategoryDepth()
SMW\HierarchyLookup::setSubcategoryDepth |
( |
|
$subcategoryDepth | ) |
|
◆ setSubpropertyDepth()
SMW\HierarchyLookup::setSubpropertyDepth |
( |
|
$subpropertyDepth | ) |
|
◆ CACHE_NAMESPACE
const SMW\HierarchyLookup::CACHE_NAMESPACE = 'smw:hierarchy' |
Persistent cache namespace
◆ TYPE_PROPERTY
const SMW\HierarchyLookup::TYPE_PROPERTY = 'type/property' |
Consecutive hierarchy types
◆ TYPE_SUPER
const SMW\HierarchyLookup::TYPE_SUPER = 'type/super' |
Consecutive hierarchy direction
The documentation for this class was generated from the following file: