Bracket
        
        Bracket parser
    
    
 class Winter\Storm\Parse\BracketConstants
| Constant | Type | Value | Description | 
|---|---|---|---|
| CHAR_CLOSE | string | "}" | 
                                                            string
                                                         "}" | 
| CHAR_OPEN | string | "{" | 
                                                            string
                                                         "{" | 
Properties
            
            
            
                protected
            
            
            $options
            
                :
                                                            array
                                                                        
                        = {"encodeHtml":false,"newlineToBr":false,"filters":[]}
                    
                            
        
        
        Parsing options
Methods
            
            
            
                public
            
                                        
                    final
                
            
            __construct (array $options = [])
                    
        
        Parameters
                | Property | Type | Description | 
|---|---|---|
| $options | array | array | 
Returns
            mixed
                
            
            
            
                public
            
                            
                    static
                
                        
            parse (string $template, array $vars = [], array $options = [])
                            : string
                    
        
        Static helper for new instances of this class.
Parameters
                | Property | Type | Description | 
|---|---|---|
| $template | string | string | 
| $vars | array | array | 
| $options | array | array | 
Returns
            string
                public parseString (string $string, array $data) : string
Parse a string against data.
Parameters
                | Property | Type | Description | 
|---|---|---|
| $string | string | string | 
| $data | array | array | 
Returns
            string
                
            
            
            
                public
            
                        
            setOptions (array $options = [])
                    
        
        Parameters
                | Property | Type | Description | 
|---|---|---|
| $options | array | array | 
Returns
            mixed
                protected parseKey (string $key, string $value, string $string) : string
Process a single key
Parameters
                | Property | Type | Description | 
|---|---|---|
| $key | string | string | 
| $value | string | string | 
| $string | string | string | 
Returns
            string
                protected parseKeyBooleans ($key, $value, $string)
This is an internally used method, the syntax is experimental and may change.
Parameters
                | Property | Type | Description | 
|---|---|---|
| $key | mixed | mixed | 
| $value | mixed | mixed | 
| $string | mixed | mixed | 
Returns
            mixed
                protected parseKeyFilters (string $key, string $value, string $string) : string
Look for filtered variables and replace them
Parameters
                | Property | Type | Description | 
|---|---|---|
| $key | string | string | 
| $value | string | string | 
| $string | string | string | 
Returns
            string
                protected parseLoop (string $key, array $data, string $string) : string
Search for open/close keys and process them in a nested fashion
Parameters
                | Property | Type | Description | 
|---|---|---|
| $key | string | string | 
| $data | array | array | 
| $string | string | string | 
Returns
            string
                protected parseLoopRegex (string $string, string $key) : string[] | false
Internal method, returns a Regular expression for parsing a looping tag.
Parameters
                | Property | Type | Description | 
|---|---|---|
| $string | string | string | 
| $key | string | string | 
Returns
            string[] | false
                
            
            ← Previous page
            Winter\Storm\Parse\Assetic\Filter\ScssCompiler
        
                
            Next page →
            Winter\Storm\Parse\Contracts\DataFileInterface
        
    
    Copyright © 2025 Winter CMS