PHP Класс DbPatch_Core_Writer

Автор: Sandy Pleyte
Автор: Martijn De Letter
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_color DbPatch_Core_Color
$_debug boolean

Открытые методы

Метод Описание
_message ( string $message, string $pallet = '' ) : DbPatch_Core_Writer Write an optionally colored message
debug ( string $message ) : DbPatch_Core_Writer Write a debug message
error ( string $message ) : DbPatch_Core_Writer Write a error message
indent ( integer $spaces = 4 ) : DbPatch_Core_Writer Indent output with spaces
info ( string $message ) : DbPatch_Core_Writer Write an info message
line ( string $message = '' ) : DbPatch_Core_Writer Outputs a message with a new line
output ( string $message = '', resource $stream = null ) : DbPatch_Core_Writer Outputs a message to the console
separate ( ) : DbPatch_Core_Writer Separate the output by outputting a dashed line
setColor ( DbPatch_Core_Color $color ) : DbPatch_Core_Writer Writer uses ANSI coloring when color object provided
setDebug ( $debug )
success ( string $message ) : DbPatch_Core_Writer Write a success message
version ( ) : DbPatch_Core_Writer Outputs the version of DbPatch
warning ( string $message ) : DbPatch_Core_Writer Write an warning messages

Описание методов

_message() публичный Метод

Write an optionally colored message
public _message ( string $message, string $pallet = '' ) : DbPatch_Core_Writer
$message string
$pallet string
Результат DbPatch_Core_Writer

debug() публичный Метод

Write a debug message
public debug ( string $message ) : DbPatch_Core_Writer
$message string
Результат DbPatch_Core_Writer

error() публичный Метод

Write a error message
public error ( string $message ) : DbPatch_Core_Writer
$message string
Результат DbPatch_Core_Writer

indent() публичный Метод

Indent output with spaces
public indent ( integer $spaces = 4 ) : DbPatch_Core_Writer
$spaces integer
Результат DbPatch_Core_Writer

info() публичный Метод

Write an info message
public info ( string $message ) : DbPatch_Core_Writer
$message string
Результат DbPatch_Core_Writer

line() публичный Метод

Outputs a message with a new line
public line ( string $message = '' ) : DbPatch_Core_Writer
$message string
Результат DbPatch_Core_Writer

output() публичный Метод

Outputs a message to the console
public output ( string $message = '', resource $stream = null ) : DbPatch_Core_Writer
$message string
$stream resource OPTIONAL, writes to standard output by default
Результат DbPatch_Core_Writer

separate() публичный Метод

Separate the output by outputting a dashed line
public separate ( ) : DbPatch_Core_Writer
Результат DbPatch_Core_Writer

setColor() публичный Метод

Writer uses ANSI coloring when color object provided
public setColor ( DbPatch_Core_Color $color ) : DbPatch_Core_Writer
$color DbPatch_Core_Color
Результат DbPatch_Core_Writer

setDebug() публичный Метод

public setDebug ( $debug )

success() публичный Метод

Write a success message
public success ( string $message ) : DbPatch_Core_Writer
$message string
Результат DbPatch_Core_Writer

version() публичный Метод

Outputs the version of DbPatch
public version ( ) : DbPatch_Core_Writer
Результат DbPatch_Core_Writer

warning() публичный Метод

Write an warning messages
public warning ( string $message ) : DbPatch_Core_Writer
$message string
Результат DbPatch_Core_Writer

Описание свойств

$_color защищенное свойство

protected DbPatch_Core_Color $_color
Результат DbPatch_Core_Color

$_debug защищенное свойство

protected bool $_debug
Результат boolean