Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | List of all members
SMW\HierarchyLookup Class Reference

Public Member Functions

 __construct (Store $store, Cache $cache)
 
 addListenersTo (ChangePropListener $changePropListener)
 
 setSubcategoryDepth ( $subcategoryDepth)
 
 setSubpropertyDepth ( $subpropertyDepth)
 
 hasSubproperty (DIProperty $property)
 
 hasSubcategory (DIWikiPage $category)
 
 findSubpropertyList (DIProperty $property)
 
 findSubcategoryList (DIWikiPage $category)
 
 getConsecutiveHierarchyList ( $id)
 

Public Attributes

const CACHE_NAMESPACE = 'smw:hierarchy'
 
const TYPE_PROPERTY = 'type.property'
 
const TYPE_CATEGORY = 'type.category'
 

Detailed Description

GNU GPL v2+

Since
2.3
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\HierarchyLookup::__construct ( Store  $store,
Cache  $cache 
)
Since
2.3
Parameters
Store$store
Cache$cache

Member Function Documentation

◆ addListenersTo()

SMW\HierarchyLookup::addListenersTo ( ChangePropListener  $changePropListener)
Since
3.0
Parameters
ChangePropListener$changePropListener

◆ findSubcategoryList()

SMW\HierarchyLookup::findSubcategoryList ( DIWikiPage  $category)
Since
2.3
Parameters
DIWikiPage$category
Returns
DIWikiPage[]|[]

◆ findSubpropertyList()

SMW\HierarchyLookup::findSubpropertyList ( DIProperty  $property)
Since
2.3
Parameters
DIProperty$property
Returns
DIWikiPage[]|[]

◆ getConsecutiveHierarchyList()

SMW\HierarchyLookup::getConsecutiveHierarchyList (   $id)
Since
3.0
Parameters
DIProperty | DIWikiPage$id
Returns
DIProperty[]|DIWikiPage[]|[]

◆ hasSubcategory()

SMW\HierarchyLookup::hasSubcategory ( DIWikiPage  $category)
Since
2.3
Parameters
DIWikiPage$category
Returns
boolean

◆ hasSubproperty()

SMW\HierarchyLookup::hasSubproperty ( DIProperty  $property)
Since
2.3
Parameters
DIProperty$property
Returns
boolean

◆ setSubcategoryDepth()

SMW\HierarchyLookup::setSubcategoryDepth (   $subcategoryDepth)
Since
2.3
Parameters
integer$subcategoryDepth

◆ setSubpropertyDepth()

SMW\HierarchyLookup::setSubpropertyDepth (   $subpropertyDepth)
Since
2.3
Parameters
integer$subpropertyDepth

Member Data Documentation

◆ CACHE_NAMESPACE

const SMW\HierarchyLookup::CACHE_NAMESPACE = 'smw:hierarchy'

Persistent cache namespace

◆ TYPE_PROPERTY

const SMW\HierarchyLookup::TYPE_PROPERTY = 'type.property'

Consecutive hierarchy types


The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy