TypeManager
    
            
            in package
            
        
    
            
            implements
                            TypeManager                    
    
    
Class TypeManager.
Table of Contents
Interfaces
Constants
- CACHE_LIFETIME = 3000
 - CACHE_NAME = 'search_type_manager_cache'
 
Properties
- $types : mixed
 
Methods
- __construct() : mixed
 - getTypePhrase() : string|null
 - hasFeature() : bool
 - hasSetting() : bool
 - isActive() : bool
 - makeType() : Type|false
 - Create or update an activity type.
 - refresh() : void
 - start() : void
 
Constants
CACHE_LIFETIME
    private
        int
    CACHE_LIFETIME
    = 3000
    
    
    
CACHE_NAME
    private
        string
    CACHE_NAME
    = 'search_type_manager_cache'
    
    
    
Properties
$types
    private
        mixed
    $types
    
    
    
    
Methods
__construct()
    public
                    __construct() : mixed
    getTypePhrase()
    public
                    getTypePhrase(string $type) : string|null
    Parameters
- $type : string
 
Return values
string|nullhasFeature()
    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
boolmakeType()
Create or update an activity type.
    public
                    makeType(array<string, mixed> $data) : Type|false
    Note: this method won't purge cache. Please purge cache manually.
Parameters
- $data : array<string, mixed>
 
Return values
Type|falserefresh()
    public
                    refresh() : void
    Tags
start()
    protected
                    start() : void