clear()
clearLine()
clearScreen()
colorize()
getCharset()
getDefaultCharset()
getHeight()
getPos()
getSize()
getTitle()
getWidth()
hideCursor()
isUtf8()
readChar()
readLine()
resetColor()
resetTitle()
setBgColor()
setCharset()
setColor()
setPos()
setTitle()
showCursor()
write()
writeAt()
writeBox()
writeLine()
writeText()
writeTextBlock()
getStringWidth()
stringTrim()
$charset
$hasMBString
$posX
$posY
FILL_BLOCK
FILL_NONE
FILL_SHADE_DARK
FILL_SHADE_LIGHT
FILL_SHADE_MEDIUM
LINE_BLOCK
LINE_DOUBLE
LINE_NONE
LINE_SINGLE
clear()
clearLine()
clearScreen()
colorize(string $string, int $color, null | int $bgColor) : string
string
int
nullint
stringgetCharset() : \Zend\Console\Charset\CharsetInterface
getHeight() : int
intgetPos() : array
arrayarray($x, $y);getSize() : array
arrayarray($width, $height)getTitle() : string
stringgetWidth() : int
intisUtf8() : bool
boolreadChar(string | null $mask) : string
stringnullA list of allowed chars
stringreadLine(int $maxLength) : string
intMaximum response length
stringresetColor()
resetTitle()
setBgColor(int $color)
int
setCharset(\Zend\Console\Charset\CharsetInterface $charset)
setColor(int $color)
int
setPos(int $x, int $y)
int
int
setTitle($title)
showCursor()
write(string $text, null | int $color, null | int $bgColor)
string
nullint
nullint
writeAt(string $text, int $x, int $y, null | int $color, null | int $bgColor)
stringText to write
intConsole X coordinate (column)
intConsole 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).
intTop-left corner X coordinate (column)
intTop-left corner Y coordinate (row)
intBottom-right corner X coordinate (column)
intBottom-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.
string
nullint
nullint
writeText(string $text, null | int $color, null | int $bgColor)
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.
stringText to write
intMaximum block width. Negative value means distance from right edge.
intnullMaximum block height. Negative value means distance from bottom edge.
intBlock X coordinate (column)
intBlock Y coordinate (row)
nullint(optional) Text color
nullint(optional) Text background color
getStringWidth($string) : int
| static |
|---|
intstringTrim(mixed $string, mixed $length) : int
mixed
mixed
int$hasMBString : null | bool
$posX : int
$posY : int
FILL_BLOCK
| inherited_from | \Zend\Console\Adapter\AdapterInterface::FILL_BLOCK |
|---|
FILL_NONE
| inherited_from | \Zend\Console\Adapter\AdapterInterface::FILL_NONE |
|---|
FILL_SHADE_DARK
| inherited_from | \Zend\Console\Adapter\AdapterInterface::FILL_SHADE_DARK |
|---|
FILL_SHADE_LIGHT
| inherited_from | \Zend\Console\Adapter\AdapterInterface::FILL_SHADE_LIGHT |
|---|
FILL_SHADE_MEDIUM
| inherited_from | \Zend\Console\Adapter\AdapterInterface::FILL_SHADE_MEDIUM |
|---|
LINE_BLOCK
| inherited_from | \Zend\Console\Adapter\AdapterInterface::LINE_BLOCK |
|---|
LINE_DOUBLE
| inherited_from | \Zend\Console\Adapter\AdapterInterface::LINE_DOUBLE |
|---|
LINE_NONE
| inherited_from | \Zend\Console\Adapter\AdapterInterface::LINE_NONE |
|---|
LINE_SINGLE
| inherited_from | \Zend\Console\Adapter\AdapterInterface::LINE_SINGLE |
|---|