MetaFox

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

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|null

getTypePhraseWithContext()

public getTypePhraseWithContext(Feed $feed[, int $profileId = 0 ]) : string|null
Parameters
$feed : Feed
$profileId : int = 0
Return values
string|null

getTypes()

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
bool

hasSetting()

public hasSetting(string $type, string $feature) : bool
Parameters
$type : string
$feature : string
Return values
bool

isActive()

public isActive(string $type) : bool
Parameters
$type : string
Return values
bool

isDisabled()

public isDisabled(string $typeName, string $settingName) : bool
Parameters
$typeName : string
$settingName : string
Return values
bool

makeType()

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|false

        
On this page

Search results