PHP 클래스 SqlParser\Components\OrderKeyword

저자: Dan Ungureanu ([email protected])
상속: extends SqlParser\Component
파일 보기 프로젝트 열기: phpmyadmin/sql-parser 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$expr Expression The expression that is used for ordering.
$type string The order type.

공개 메소드들

메소드 설명
__construct ( Expression $expr = null, string $type = 'ASC' ) Constructor.
build ( OrderKeyword | OrderKeyword[] $component, array $options = [] ) : string
parse ( Parser $parser, TokensList $list, array $options = [] ) : OrderKeyword[]

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Expression $expr = null, string $type = 'ASC' )
$expr Expression The expression that we are sorting by.
$type string The sorting type.

build() 공개 정적인 메소드

public static build ( OrderKeyword | OrderKeyword[] $component, array $options = [] ) : string
$component OrderKeyword | OrderKeyword[] The component to be built.
$options array Parameters for building.
리턴 string

parse() 공개 정적인 메소드

public static parse ( Parser $parser, TokensList $list, array $options = [] ) : OrderKeyword[]
$parser SqlParser\Parser The parser that serves as context.
$list SqlParser\TokensList The list of tokens that are being parsed.
$options array Parameters for parsing.
리턴 OrderKeyword[]

프로퍼티 상세

$expr 공개적으로 프로퍼티

The expression that is used for ordering.
public Expression,SqlParser\Components $expr
리턴 Expression

$type 공개적으로 프로퍼티

The order type.
public string $type
리턴 string