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

Static Public Member Functions

static getDataTypeList ()
 
static getPropertyList ( $useCategoryHierarchy=true)
 
static getTypesByGroup ( $key='')
 
static getFixedProperties ( $key='')
 
static getOWLPropertyByType ( $type)
 

Detailed Description

GNU GPL v2+

Since
3.0
Author
mwjames

Member Function Documentation

◆ getDataTypeList()

static SMW\TypesRegistry::getDataTypeList ( )
static
Note
All IDs must start with an underscore, two underscores indicate a truly internal (non user-interacted type). All others should also get a translation in the language files, or they won't be available for users.
Since
2.5
Returns
array

◆ getFixedProperties()

static SMW\TypesRegistry::getFixedProperties (   $key = '')
static
Note
These constants also occur in the store. Changing them will require to run setup.php again.

The highest assignable ID is defined by: ( SQLStore::FIXED_PROPERTY_ID_UPPERBOUND - 1)

  • id refers to the fixed ID in the entity table assigned to a property
  • default_fixed refers to properties that by default are fixed and require their own table space
  • custom_fixed refers to properties that are not enabled by default but when the user enables them require their own table space
  • id_conversion contains properties planned to be converted and move to a fixed ID
Since
3.1
Parameters
string$key
Returns
array

◆ getOWLPropertyByType()

static SMW\TypesRegistry::getOWLPropertyByType (   $type)
static
Since
3.1

◆ getPropertyList()

static SMW\TypesRegistry::getPropertyList (   $useCategoryHierarchy = true)
static
Note
All ids must start with underscores. The translation for each ID, if any, is defined in the language files. Properties without translation cannot be entered by or displayed to users, whatever their "show" value below.
Since
3.0
Parameters
boolean$useCategoryHierarchy
Returns
array

◆ getTypesByGroup()

static SMW\TypesRegistry::getTypesByGroup (   $key = '')
static
Since
3.0
Returns
array

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

About | General disclaimer | Privacy policy