BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
BlueSpice\EntityConfig Class Reference
Inheritance diagram for BlueSpice\EntityConfig:
Collaboration diagram for BlueSpice\EntityConfig:

Public Member Functions

 __construct ($config, $type, $defaults=[])
 
 get ($sOption)
 
 jsonSerialize ()
 
 getType ()
 

Static Public Member Functions

static factory ($type)
 

Protected Member Functions

 getDefault ($sOption)
 
 getConfig ()
 
 addGetterDefaults ()
 
 get_EntityClass ()
 
 get_StoreClass ()
 
 get_ContentClass ()
 
 get_AttributeDefinitions ()
 

Protected Attributes

 $type = ''
 
 $config = null
 
 $defaults = []
 

Constructor & Destructor Documentation

BlueSpice\EntityConfig::__construct (   $config,
  $type,
  $defaults = [] 
)
Parameters
type$config

Member Function Documentation

static BlueSpice\EntityConfig::factory (   $type)
static

EntityConfig factory

Deprecated:
since version 3.0.0 - Use MediaWikiService 'EntityConfigFactory' instead
Parameters
string$type- Entity type
Returns
EntityConfig - or null
BlueSpice\EntityConfig::get (   $sOption)

Getter for config methods

Parameters
string$sOption
Returns
mixed - The return value of the internaly called method or the default
BlueSpice\EntityConfig::getType ( )
Returns
string - EntityConfig type
BlueSpice\EntityConfig::jsonSerialize ( )

Returns a json serializable object

Returns
stdClass

Implements JsonSerializable.


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