PHP Class SqlParser\Component

Datei anzeigen Open project: phpmyadmin/sql-parser Class Usage Examples

Public Methods

Method 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 method

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

build() public static method

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.
return string

parse() public static method

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.
return mixed