Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • None
  • system
    • base
    • caching
    • console
    • db
      • ar
      • schema
    • validators
    • web
      • actions
      • auth
      • helpers
      • widgets
        • captcha
        • pagers
  • zii
    • widgets
      • grid

Classes

  • AutomaticTranslationCommand
  • ConsoleFormatterUtil
  • CronCommand
  • CryptSetupCommand
  • DummyCommand
  • ExportFixtureCommand
  • MigrateCustomCommand
  • SampleDataCommand
  • UpdateCommand
  • UpdaterPackageCommand
  • Overview
  • Package
  • Class
  • Tree

Class ConsoleFormatterUtil

Class for formatting pretty console messages.

Formatting methods are intended to be chained, i.e.

$formatter->bgColor($backgroundColor)->bold()->color($textColor)->format();

Only "format" returns the message with the escape sequences. Note also,

Package: application\commands
Author: Demitri Morgan <demitri@x2engine.com>
Located at x2engine/protected/components/util/ConsoleFormatterUtil.php
Methods summary
public
# __construct( mixed $msg )
public
# bgColor( mixed $color )
public
# bold( )

Returns a message in boldface.

Returns a message in boldface.

public type
# color( type $color )

Returns a message with color sequences applied.

Returns a message with color sequences applied.

Parameters

$color
type
$msg

Returns

type
public
# format( )
Properties summary
public mixed $msg
#
X2CRM Documentation API documentation generated by ApiGen 2.8.0