Свойство | Тип | Описание | |
---|---|---|---|
$bg | string | ||
$contentWidth | integer | ||
$fg | string | ||
$margin | integer | ||
$padding | integer | ||
$terminal | PhpSchool\CliMenu\Terminal\TerminalInterface | ||
$width | integer |
Метод | Описание | |
---|---|---|
__construct ( PhpSchool\CliMenu\Terminal\TerminalInterface $terminal = null ) | Initialise style | |
getAvailableColours ( ) : array | ||
getBg ( ) : string | ||
getContentWidth ( ) : integer | ||
getDefaultStyleValues ( ) : array | ||
getDisabledItemText ( string $text ) : string | ||
getDisplaysExtra ( ) : boolean | ||
getFg ( ) : string | ||
getItemExtra ( ) : string | ||
getMargin ( ) : integer | ||
getMarker ( boolean $selected ) : string | Get the correct marker for the item | |
getPadding ( ) : integer | ||
getRightHandPadding ( $contentLength ) : integer | Get padding for right had side of content | |
getSelectedMarker ( ) : string | ||
getSelectedSetCode ( ) : string | Get the colour code set for Bg and Fg | |
getSelectedUnsetCode ( ) : string | Get the colour unset code for Bg and Fg | |
getTitleSeparator ( ) : string | ||
getUnselectedMarker ( ) : string | ||
getUnselectedSetCode ( ) : string | Get the inverted colour code | |
getUnselectedUnsetCode ( ) : string | Get the inverted colour unset code | |
getWidth ( ) : integer | ||
setBg ( string $bg ) : |
||
setDisplaysExtra ( boolean $displaysExtra ) | ||
setFg ( string $fg ) : |
||
setItemExtra ( string $itemExtra ) | ||
setMargin ( integer $margin ) : |
||
setPadding ( integer $padding ) : |
||
setSelectedMarker ( string $marker ) | ||
setTitleSeparator ( string $actionSeparator ) | ||
setUnselectedMarker ( string $marker ) | ||
setWidth ( integer $width ) : |
Метод | Описание | |
---|---|---|
calculateContentWidth ( ) | Calculate the contents width |
public __construct ( PhpSchool\CliMenu\Terminal\TerminalInterface $terminal = null ) | ||
$terminal | PhpSchool\CliMenu\Terminal\TerminalInterface |
protected calculateContentWidth ( ) |
public static getAvailableColours ( ) : array | ||
Результат | array |
public static getDefaultStyleValues ( ) : array | ||
Результат | array |
public getDisabledItemText ( string $text ) : string | ||
$text | string | |
Результат | string |
public getRightHandPadding ( $contentLength ) : integer | ||
$contentLength | ||
Результат | integer |
public getSelectedSetCode ( ) : string | ||
Результат | string |
public getSelectedUnsetCode ( ) : string | ||
Результат | string |
public getUnselectedSetCode ( ) : string | ||
Результат | string |
public getUnselectedUnsetCode ( ) : string | ||
Результат | string |
public setDisplaysExtra ( boolean $displaysExtra ) | ||
$displaysExtra | boolean |
public setPadding ( integer $padding ) : |
||
$padding | integer | |
Результат |
public setTitleSeparator ( string $actionSeparator ) | ||
$actionSeparator | string |
protected TerminalInterface,PhpSchool\CliMenu\Terminal $terminal | ||
Результат | PhpSchool\CliMenu\Terminal\TerminalInterface |