OutputStyle
class OutputStyle extends SymfonyStyle (View source)
concrete5's output style.
Inspiration goes to illuminate/console
Properties
| private OutputInterface | $output | 
Methods
                    void
                
                
                    __construct(InputInterface $input, OutputInterface $output)
        
                                            
                
            Create a new Console OutputStyle instance.
                    string
                
                
                    askWithCompletion($question, array $choices, null $default = null, null $attempts = null, bool $strict = false)
        
                                            
                
            Ask a question with autocompletion
                    secret($question, $fallback = true)
        
                                            
                
            No description
                    string
                
                
                    askSecretQuestion($question, bool $fallback = true)
        
                                            
                
            Ask a question while hiding the response
                    mixed
                
                
                    choice(string $question, array $choices, null $default = null, null $attempts = null, null $multiple = null)
        
                                            
                
            Ask a question with a list of allowed answers
                    table(array $headers, array $rows, string $tableStyle = 'default', array $columnStyles = [])
        
                                            
                
            Create a table instance
                    columns(array $values, int $width = 5, string $tableStyle = 'compact', array $columnStyles = [])
        
                                            
                
            Output in even width columns
                    chunk(array $values, $size)
        
                                            
                
            No description
                    getColumnWidths($width)
        
                                            
                
            No description
Details
        
                            void
    __construct(InputInterface $input, OutputInterface $output)
        
    
    Create a new Console OutputStyle instance.
        
                            string
    askWithCompletion($question, array $choices, null $default = null, null $attempts = null, bool $strict = false)
        
    
    Ask a question with autocompletion
        
                            
    secret($question, $fallback = true)
        
    
    No description
        
                            string
    askSecretQuestion($question, bool $fallback = true)
        
    
    Ask a question while hiding the response
        
                            mixed
    choice(string $question, array $choices, null $default = null, null $attempts = null, null $multiple = null)
        
    
    Ask a question with a list of allowed answers
        
                            
    table(array $headers, array $rows, string $tableStyle = 'default', array $columnStyles = [])
        
    
    Create a table instance
        
                            
    columns(array $values, int $width = 5, string $tableStyle = 'compact', array $columnStyles = [])
        
    
    Output in even width columns
        
                    protected        
    chunk(array $values, $size)
        
    
    No description
        
                        private    
    getColumnWidths($width)
        
    
    No description