clear()
clearLine()
clearScreen()
colorize()
getCharset()
getDefaultCharset()
getHeight()
getSize()
getTitle()
getWidth()
hideCursor()
isUtf8()
readChar()
readLine()
resetColor()
setBgColor()
setCharset()
setColor()
setPos()
showCursor()
write()
writeAt()
writeBox()
writeLine()
writeText()
writeTextBlock()
runProbeCommand()
switchToUtf8()
$charset
$hasMBString
$modeResult
$posX
$posY
FILL_BLOCK
FILL_NONE
FILL_SHADE_DARK
FILL_SHADE_LIGHT
FILL_SHADE_MEDIUM
LINE_BLOCK
LINE_DOUBLE
LINE_NONE
LINE_SINGLE
Virtual buffer adapter
clear()
inherited_from | \Zend\Console\Adapter\AbstractAdapter::clear() |
---|
clearLine()
inherited_from | \Zend\Console\Adapter\AbstractAdapter::clearLine() |
---|
clearScreen()
inherited_from | \Zend\Console\Adapter\AbstractAdapter::clearScreen() |
---|
colorize(string $string, int $color, null | int $bgColor) : string
inherited_from | \Zend\Console\Adapter\AbstractAdapter::colorize() |
---|
string
int
nullint
string
getCharset() : \Zend\Console\Charset\CharsetInterface
getDefaultCharset() : \Zend\Console\Charset\AsciiExtended
getHeight() : false | int
false
int
getSize() : array
inherited_from | \Zend\Console\Adapter\AbstractAdapter::getSize() |
---|
array
array($width, $height)getTitle() : string
string
getWidth() : int
int
isUtf8() : bool
bool
readChar(string | null $mask) : string
inherited_from | \Zend\Console\Adapter\AbstractAdapter::readChar() |
---|
stringnull
A list of allowed chars
string
readLine(int $maxLength) : string
inherited_from | \Zend\Console\Adapter\AbstractAdapter::readLine() |
---|
int
Maximum response length
string
resetColor()
inherited_from | \Zend\Console\Adapter\AbstractAdapter::resetColor() |
---|
setBgColor(int $color)
inherited_from | \Zend\Console\Adapter\AbstractAdapter::setBgColor() |
---|
int
setCharset(\Zend\Console\Charset\CharsetInterface $charset)
setColor(int $color)
inherited_from | \Zend\Console\Adapter\AbstractAdapter::setColor() |
---|
int
setPos(int $x, int $y)
inherited_from | \Zend\Console\Adapter\AbstractAdapter::setPos() |
---|
int
int
showCursor()
inherited_from | \Zend\Console\Adapter\AbstractAdapter::showCursor() |
---|
write(string $text, null | int $color, null | int $bgColor)
inherited_from | \Zend\Console\Adapter\AbstractAdapter::write() |
---|
string
nullint
nullint
writeAt(string $text, int $x, int $y, null | int $color, null | int $bgColor)
inherited_from | \Zend\Console\Adapter\AbstractAdapter::writeAt() |
---|
string
Text to write
int
Console X coordinate (column)
int
Console Y coordinate (row)
nullint
nullint
writeBox(int $x1, int $y1, int $x2, int $y2, int $lineStyle, int $fillStyle, int $color, int $bgColor, null | int $fillColor, null | int $fillBgColor)
If X or Y coordinate value is negative, it will be calculated as the distance from far right or bottom edge of the console (respectively).
inherited_from | \Zend\Console\Adapter\AbstractAdapter::writeBox() |
---|
int
Top-left corner X coordinate (column)
int
Top-left corner Y coordinate (row)
int
Bottom-right corner X coordinate (column)
int
Bottom-right corner Y coordinate (row)
int
(optional) Box border style.
int
(optional) Box fill style or a single character to fill it with.
int
(optional) Foreground color
int
(optional) Background color
nullint
(optional) Foreground color of box fill
nullint
(optional) Background color of box fill
\Zend\Console\Exception\BadMethodCallException |
if coordinates are invalid |
---|
writeLine(string $text, null | int $color, null | int $bgColor)
If the text is longer than console width it will be truncated.
inherited_from | \Zend\Console\Adapter\AbstractAdapter::writeLine() |
---|
string
nullint
nullint
writeText(string $text, null | int $color, null | int $bgColor)
inherited_from | \Zend\Console\Adapter\AbstractAdapter::writeText() |
---|
string
nullint
nullint
writeTextBlock(string $text, int $width, int | null $height, int $x, int $y, null | int $color, null | int $bgColor)
In case a line of text does not fit desired width, it will be wrapped to the next line. In case the whole text does not fit in desired height, it will be truncated.
inherited_from | \Zend\Console\Adapter\AbstractAdapter::writeTextBlock() |
---|
string
Text to write
int
Maximum block width. Negative value means distance from right edge.
intnull
Maximum block height. Negative value means distance from bottom edge.
int
Block X coordinate (column)
int
Block Y coordinate (row)
nullint
(optional) Text color
nullint
(optional) Text background color
runProbeCommand() : void
switchToUtf8() : void
$charset : \Zend\Console\Charset\CharsetInterface
inherited_from | \Zend\Console\Adapter\AbstractAdapter::$$charset |
---|
$hasMBString : null | bool
$modeResult : mixed
$posX : int
inherited_from | \Zend\Console\Adapter\AbstractAdapter::$$posX |
---|
$posY : int
inherited_from | \Zend\Console\Adapter\AbstractAdapter::$$posY |
---|
FILL_BLOCK
inherited_from | \Zend\Console\Adapter\AdapterInterface::FILL_BLOCK |
---|---|
inherited_from | \Zend\Console\Adapter\AbstractAdapter::FILL_BLOCK |
FILL_NONE
inherited_from | \Zend\Console\Adapter\AdapterInterface::FILL_NONE |
---|---|
inherited_from | \Zend\Console\Adapter\AbstractAdapter::FILL_NONE |
FILL_SHADE_DARK
inherited_from | \Zend\Console\Adapter\AdapterInterface::FILL_SHADE_DARK |
---|---|
inherited_from | \Zend\Console\Adapter\AbstractAdapter::FILL_SHADE_DARK |
FILL_SHADE_LIGHT
inherited_from | \Zend\Console\Adapter\AdapterInterface::FILL_SHADE_LIGHT |
---|---|
inherited_from | \Zend\Console\Adapter\AbstractAdapter::FILL_SHADE_LIGHT |
FILL_SHADE_MEDIUM
inherited_from | \Zend\Console\Adapter\AdapterInterface::FILL_SHADE_MEDIUM |
---|---|
inherited_from | \Zend\Console\Adapter\AbstractAdapter::FILL_SHADE_MEDIUM |
LINE_BLOCK
inherited_from | \Zend\Console\Adapter\AdapterInterface::LINE_BLOCK |
---|---|
inherited_from | \Zend\Console\Adapter\AbstractAdapter::LINE_BLOCK |
LINE_DOUBLE
inherited_from | \Zend\Console\Adapter\AdapterInterface::LINE_DOUBLE |
---|---|
inherited_from | \Zend\Console\Adapter\AbstractAdapter::LINE_DOUBLE |
LINE_NONE
inherited_from | \Zend\Console\Adapter\AdapterInterface::LINE_NONE |
---|---|
inherited_from | \Zend\Console\Adapter\AbstractAdapter::LINE_NONE |
LINE_SINGLE
inherited_from | \Zend\Console\Adapter\AdapterInterface::LINE_SINGLE |
---|---|
inherited_from | \Zend\Console\Adapter\AbstractAdapter::LINE_SINGLE |