TypeManager
extends
TypeManagerInterface
in
Interface TypeManager.
Table of Contents
Methods
- cleanData() : void
- getAbilities() : array<string|int, mixed>
- getDefaultSettings() : array<string|int, mixed>
- getDefaultSettingsByType() : array<string|int, mixed>
- getDisabledSettings() : array<string|int, mixed>
- getTypePhrase() : string|null
- getTypePhraseWithContext() : string|null
- getTypes() : array<string|int, mixed>
- getTypeSettings() : array<string|int, mixed>
- hasFeature() : bool
- hasSetting() : bool
- isActive() : bool
- isDisabled() : bool
- makeType() : mixed|false
- Create or update an item type.
- refresh() : void
- Refresh cache.
Methods
cleanData()
public
cleanData() : void
getAbilities()
public
getAbilities() : array<string|int, mixed>
Return values
array<string|int, mixed>getDefaultSettings()
public
getDefaultSettings() : array<string|int, mixed>
Return values
array<string|int, mixed>getDefaultSettingsByType()
public
getDefaultSettingsByType(string $type) : array<string|int, mixed>
Parameters
- $type : string
Return values
array<string|int, mixed>getDisabledSettings()
public
getDisabledSettings() : array<string|int, mixed>
Return values
array<string|int, mixed>getTypePhrase()
public
getTypePhrase(string $type) : string|null
Parameters
- $type : string
Return values
string|nullgetTypePhraseWithContext()
public
getTypePhraseWithContext(Feed $feed[, int $profileId = 0 ]) : string|null
Parameters
- $feed : Feed
- $profileId : int = 0
Return values
string|nullgetTypes()
public
getTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>getTypeSettings()
public
getTypeSettings() : array<string|int, mixed>
Return values
array<string|int, mixed>hasFeature()
public
hasFeature(string $type, string $feature) : bool
Parameters
- $type : string
- $feature : string
Return values
boolhasSetting()
public
hasSetting(string $type, string $feature) : bool
Parameters
- $type : string
- $feature : string
Return values
boolisActive()
public
isActive(string $type) : bool
Parameters
- $type : string
Return values
boolisDisabled()
public
isDisabled(string $typeName, string $settingName) : bool
Parameters
- $typeName : string
- $settingName : string
Return values
boolmakeType()
Create or update an item type.
public
makeType(array<string, mixed> $data) : mixed|false
Note: this method won't purge cache. Please purge cache manually.
Parameters
- $data : array<string, mixed>
Return values
mixed|falserefresh()
Refresh cache.
public
refresh() : void