PHP Класс SqlParser\Component

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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