PHP 클래스 Webmozart\Console\UI\Style\GridStyle

부터: 1.0
저자: Bernhard Schussek ([email protected])
파일 보기 프로젝트 열기: webmozart/console 1 사용 예제들

공개 메소드들

메소드 설명
asciiBorder ( ) : GridStyle A style that uses ASCII characters for drawing borders.
borderless ( ) : GridStyle A borderless style.
getBorderStyle ( ) : BorderStyle Returns the border style.
getCellAlignment ( ) : integer Returns the cell alignment.
getCellFormat ( ) : string Returns the format string for rendering cells.
getCellStyle ( ) : Style Returns the style of the grid cells.
getPaddingChar ( ) : string Returns the character used to pad cells to the desired width.
setBorderStyle ( BorderStyle $borderStyle ) : static Sets the border style.
setCellAlignment ( integer $alignment ) : static Sets the cell alignment.
setCellFormat ( string $format ) : static Sets the format string for rendering cells.
setCellStyle ( Style $style ) : static Sets the style of the grid cells.
setPaddingChar ( string $char ) : static Sets the character used to pad cells to the desired width.
solidBorder ( ) : GridStyle A style that uses Unicode characters for drawing solid borders.

메소드 상세

asciiBorder() 공개 정적인 메소드

A style that uses ASCII characters for drawing borders.
public static asciiBorder ( ) : GridStyle
리턴 GridStyle The style.

borderless() 공개 정적인 메소드

A borderless style.
public static borderless ( ) : GridStyle
리턴 GridStyle The style.

getBorderStyle() 공개 메소드

Returns the border style.
public getBorderStyle ( ) : BorderStyle
리턴 BorderStyle The border style.

getCellAlignment() 공개 메소드

Returns the cell alignment.
public getCellAlignment ( ) : integer
리턴 integer One of the {@link Alignment} constants.

getCellFormat() 공개 메소드

Returns the format string for rendering cells.
public getCellFormat ( ) : string
리턴 string The format string. The string contains the substring "%s" where the cell content is inserted.

getCellStyle() 공개 메소드

Returns the style of the grid cells.
public getCellStyle ( ) : Style
리턴 Webmozart\Console\Api\Formatter\Style The cell style.

getPaddingChar() 공개 메소드

Returns the character used to pad cells to the desired width.
public getPaddingChar ( ) : string
리턴 string The padding character.

setBorderStyle() 공개 메소드

Sets the border style.
public setBorderStyle ( BorderStyle $borderStyle ) : static
$borderStyle BorderStyle The border style.
리턴 static The current instance.

setCellAlignment() 공개 메소드

Sets the cell alignment.
public setCellAlignment ( integer $alignment ) : static
$alignment integer One of the {@link Alignment} constants.
리턴 static The current instance.

setCellFormat() 공개 메소드

Sets the format string for rendering cells.
public setCellFormat ( string $format ) : static
$format string The format string. The string should contain the substring "%s" where the cell content is inserted.
리턴 static The current instance.

setCellStyle() 공개 메소드

Sets the style of the grid cells.
public setCellStyle ( Style $style ) : static
$style Webmozart\Console\Api\Formatter\Style The cell style.
리턴 static The current instance.

setPaddingChar() 공개 메소드

Sets the character used to pad cells to the desired width.
public setPaddingChar ( string $char ) : static
$char string The padding character.
리턴 static The current instance.

solidBorder() 공개 정적인 메소드

A style that uses Unicode characters for drawing solid borders.
public static solidBorder ( ) : GridStyle
리턴 GridStyle The style.