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

Public Member Functions

 __construct (Store $store, EntityCache $entityCache)
 
 skipCache ( $skipCache=true)
 
 setLanguageCode ( $languageCode)
 
 invalidateCache (DIWikiPage $subject)
 
 getSpecification ( $source, DIProperty $target)
 
 getFieldListBy (DIProperty $property)
 
 getPreferredPropertyLabelByLanguageCode (DIProperty $property, $languageCode='')
 
 hasUniquenessConstraint (DIProperty $property)
 
 getPropertyGroup (DIProperty $property)
 
 getExternalFormatterUri (DIProperty $property)
 
 getAllowedPatternBy (DIProperty $property)
 
 getAllowedValues (DIProperty $property)
 
 getAllowedListValues (DIProperty $property)
 
 getDisplayPrecision (DIProperty $property)
 
 getDisplayUnits (DIProperty $property)
 
 getPropertyDescriptionByLanguageCode (DIProperty $property, $languageCode='', $linker=null)
 

Public Attributes

const CACHE_NS_KEY_SPECIFICATIONLOOKUP = ':propertyspecificationlookup'
 
const CACHE_NS_KEY_SPECIFICATIONLOOKUP_PREFERREDLABEL = ':propertyspecificationlookup:preferredlabel'
 
const CACHE_NS_KEY_SPECIFICATIONLOOKUP_DESCRIPTION = ':propertyspecificationlookup:description'
 

Detailed Description

This class should be accessed via ApplicationFactory::getPropertySpecificationLookup to ensure a singleton instance.

GNU GPL v2+

Since
2.4
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\Property\SpecificationLookup::__construct ( Store  $store,
EntityCache  $entityCache 
)
Since
2.4
Parameters
Store$store
EntityCache$entityCache

Member Function Documentation

◆ getAllowedListValues()

SMW\Property\SpecificationLookup::getAllowedListValues ( DIProperty  $property)
Since
2.5
Parameters
DIProperty$property
Returns
array

◆ getAllowedPatternBy()

SMW\Property\SpecificationLookup::getAllowedPatternBy ( DIProperty  $property)
Since
2.4
Parameters
DIProperty$property
Returns
string

◆ getAllowedValues()

SMW\Property\SpecificationLookup::getAllowedValues ( DIProperty  $property)
Since
2.4
Parameters
DIProperty$property
Returns
array

◆ getDisplayPrecision()

SMW\Property\SpecificationLookup::getDisplayPrecision ( DIProperty  $property)
Since
2.4
Parameters
DIProperty$property
Returns
integer|false

◆ getDisplayUnits()

SMW\Property\SpecificationLookup::getDisplayUnits ( DIProperty  $property)
Since
2.4
Parameters
DIProperty$property
Returns
array

◆ getExternalFormatterUri()

SMW\Property\SpecificationLookup::getExternalFormatterUri ( DIProperty  $property)
Since
2.5
Parameters
DIProperty$property
Returns
DataItem|null

◆ getFieldListBy()

SMW\Property\SpecificationLookup::getFieldListBy ( DIProperty  $property)
Since
2.5
Parameters
DIProperty$property
Returns
false|DataItem

◆ getPreferredPropertyLabelByLanguageCode()

SMW\Property\SpecificationLookup::getPreferredPropertyLabelByLanguageCode ( DIProperty  $property,
  $languageCode = '' 
)
Since
2.5
Parameters
DIProperty$property
string$languageCode
Returns
string

◆ getPropertyDescriptionByLanguageCode()

SMW\Property\SpecificationLookup::getPropertyDescriptionByLanguageCode ( DIProperty  $property,
  $languageCode = '',
  $linker = null 
)
Since
2.4
Parameters
DIProperty$property
string$languageCode
mixed | null$linker
Returns
string

◆ getPropertyGroup()

SMW\Property\SpecificationLookup::getPropertyGroup ( DIProperty  $property)
Since
3.0
Parameters
DIProperty$property
Returns
DataItem|null

◆ getSpecification()

SMW\Property\SpecificationLookup::getSpecification (   $source,
DIProperty  $target 
)
Since
2.5
Parameters
DIProperty | DIWikiPage$source
DIProperty$target
Returns
[]|DataItem[]

◆ hasUniquenessConstraint()

SMW\Property\SpecificationLookup::hasUniquenessConstraint ( DIProperty  $property)
Since
2.4
Parameters
DIProperty$property
Returns
boolean

◆ invalidateCache()

SMW\Property\SpecificationLookup::invalidateCache ( DIWikiPage  $subject)
Since
2.4
Parameters
DIWikiPage$subject

◆ setLanguageCode()

SMW\Property\SpecificationLookup::setLanguageCode (   $languageCode)
Since
3.1
Parameters
string$languageCode

◆ skipCache()

SMW\Property\SpecificationLookup::skipCache (   $skipCache = true)
Since
3.1
Parameters
boolean$skipCache

Member Data Documentation

◆ CACHE_NS_KEY_SPECIFICATIONLOOKUP

const SMW\Property\SpecificationLookup::CACHE_NS_KEY_SPECIFICATIONLOOKUP = ':propertyspecificationlookup'

Identifies types used as part of the generate key to distinguish between instances that would create the same entity key


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

About | General disclaimer | Privacy policy