PHP 클래스 SqlParser\Component

파일 보기 프로젝트 열기: phpmyadmin/sql-parser 1 사용 예제들

공개 메소드들

메소드 설명
__toString ( ) : string Builds the string representation of a component of this type.
build ( mixed $component, array $options = [] ) : string Builds the string representation of a component of this type.
parse ( Parser $parser, TokensList $list, array $options = [] ) : mixed Parses the tokens contained in the given list in the context of the given parser.

메소드 상세

__toString() 공개 메소드

Builds the string representation of a component of this type.
또한 보기: static::build
public __toString ( ) : string
리턴 string

build() 공개 정적인 메소드

In other words, this function represents the inverse function of static::parse.
public static build ( mixed $component, array $options = [] ) : string
$component mixed The component to be built.
$options array Parameters for building.
리턴 string

parse() 공개 정적인 메소드

Parses the tokens contained in the given list in the context of the given parser.
public static parse ( Parser $parser, TokensList $list, array $options = [] ) : mixed
$parser Parser The parser that serves as context.
$list TokensList The list of tokens that are being parsed.
$options array Parameters for parsing.
리턴 mixed