JOOMLA中国
  • Joomla中国首页
  • 社区
  • 教程
  • 应用市场
  • B计划
Joomla! Framework TM
  • Namespace
  • Class
  • Tree
  • Deprecated

Namespaces

  • Composer
    • Autoload
  • Joomla
    • Application
      • Cli
        • Output
          • Processor
      • Web
    • Data
    • DI
      • Exception
    • Event
    • Filter
    • Input
    • Ldap
    • Registry
      • Format
    • Session
      • Storage
    • String
    • Uri
    • Utilities
  • None
  • PasswordCompat
    • binary
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Yaml
        • Exception
    • Polyfill
      • Util

Classes

  • ColorProcessor

Interfaces

  • ProcessorInterface

Class ColorProcessor

Class ColorProcessor.

Joomla\Application\Cli\Output\Processor\ColorProcessor implements Joomla\Application\Cli\Output\Processor\ProcessorInterface

Direct known subclasses

Joomla\Application\Cli\ColorProcessor

Namespace: Joomla\Application\Cli\Output\Processor
Since: 1.0
Located at vendor/joomla/application/src/Cli/Output/Processor/ColorProcessor.php

Methods summary

public
# __construct( boolean $noColors = null )

Class constructor

Class constructor

Parameters

$noColors
boolean - $noColors Defines non-colored mode on construct

Since

1.1.0
public Joomla\Application\Cli\Output\Processor\ColorProcessor
# addStyle( string $name, Joomla\Application\Cli\ColorStyle $style )

Add a style.

Add a style.

Parameters

$name
string - $name The style name.
$style
Joomla\Application\Cli\ColorStyle - $style The color style.

Returns

Joomla\Application\Cli\Output\Processor\ColorProcessor - Instance of $this to allow chaining.

Since

1.0
public static string
# stripColors( string $string )

Strip color tags from a string.

Strip color tags from a string.

Parameters

$string
string - $string The string.

Returns

string

Since

1.0
public string
# process( string $string )

Process a string.

Process a string.

Parameters

$string
string - $string The string to process.

Returns

string

Since

1.0

Implementation of

Joomla\Application\Cli\Output\Processor\ProcessorInterface::process()

Magic methods summary

Properties summary

public boolean $noColors
#

Flag to remove color codes from the output

Flag to remove color codes from the output

Since

1.0
protected string $tagFilter
#

Regex to match tags

Regex to match tags

Since

1.0
protected static string $stripFilter
#

Regex used for removing color codes

Regex used for removing color codes

Since

1.0
protected array $styles
#

Array of ColorStyle objects

Array of ColorStyle objects

Since

1.0
Joomla! Framework TM API documentation generated by ApiGen 2.8.0
Joomla!® and Joomla! Framework™ are trademarks of Open Source Matters, Inc. in the United States and other countries.