MediaViewHelper
        
        Helper class for processing video and audio tags inserted by the Media Manager.
    
    
 class Cms\Classes\MediaViewHelperTraits
| Trait | Description | 
|---|---|
| Singleton | Singleton trait. | 
Properties
            
            
            
                protected
            
            
            $playerPartialFlags
            
                :
                                                            mixed
                                                                        
                        = []
                    
                            
        
        
        Methods
public processHtml (string $html) : string
Replaces audio and video tags inserted by the Media Manager with players markup.
Parameters
                | Property | Type | Description | 
|---|---|---|
| $html | string | string Specifies the HTML string to process. | 
Returns
            string
                Returns the processed HTML string.
protected extractMediaTags ($html)
Parameters
                | Property | Type | Description | 
|---|---|---|
| $html | mixed | mixed | 
Returns
            mixed
                protected generateMediaTagMarkup ($type, $src)
Parameters
                | Property | Type | Description | 
|---|---|---|
| $type | mixed | mixed | 
| $src | mixed | mixed | 
Returns
            mixed
                protected getDefaultPlayerMarkup ($type, $src)
Parameters
                | Property | Type | Description | 
|---|---|---|
| $type | mixed | mixed | 
| $src | mixed | mixed | 
Returns
            mixed
                protected playerPartialExists ($name)
Parameters
                | Property | Type | Description | 
|---|---|---|
| $name | mixed | mixed | 
Returns
            mixed
                inherited public __clone ()
                Inherited from
                
                    Singleton
                
            
        
        Returns
            mixed
                inherited public __wakeup ()
                Inherited from
                
                    Singleton
                
            
        
        Returns
            mixed
                
            
                            
                    inherited
                
            
            
                public
            
                            
                    static
                
                                        
                    final
                
            
            forgetInstance ($container = null)
                            : void
                    
                    
                Inherited from
                
                    Singleton
                
            
        
        Forget this singleton's instance if it exists
Parameters
                | Property | Type | Description | 
|---|---|---|
| $container | mixed | mixed | 
Returns
            void
                
            
                            
                    inherited
                
            
            
                public
            
                            
                    static
                
                                        
                    final
                
            
            instance ($container = null)
                            : static
                    
                    
                Inherited from
                
                    Singleton
                
            
        
        Create a new instance of this singleton.
Parameters
                | Property | Type | Description | 
|---|---|---|
| $container | mixed | mixed | 
Returns
            static
                inherited protected final __construct ()
                Inherited from
                
                    Singleton
                
            
        
        Constructor.
Returns
            mixed
                inherited protected init ()
                Inherited from
                
                    Singleton
                
            
        
        Initialize the singleton free from constructor parameters.
Returns
            mixed
                
    Copyright © 2025 Winter CMS