PHP Class SqlParser\Component

Afficher le fichier Open project: phpmyadmin/sql-parser Class Usage Examples

Méthodes publiques

Méthode Description
__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.

Method Details

__toString() public méthode

Builds the string representation of a component of this type.
See also: static::build
public __toString ( ) : string
Résultat string

build() public static méthode

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.
Résultat string

parse() public static méthode

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.
Résultat mixed