PHP Class SqlParser\Components\Reference

Inheritance: extends SqlParser\Component
Afficher le fichier Open project: phpmyadmin/sql-parser Class Usage Examples

Méthodes publiques

Свойство Type Description
$REFERENCES_OPTIONS array All references options.
$columns array The referenced columns.
$options OptionsArray The options of the referencing.
$table Expression The referenced table.

Méthodes publiques

Méthode Description
__construct ( Expression $table = null, array $columns = [], OptionsArray $options = null ) Constructor.
build ( Reference $component, array $options = [] ) : string
parse ( Parser $parser, TokensList $list, array $options = [] ) : Reference

Method Details

__construct() public méthode

Constructor.
public __construct ( Expression $table = null, array $columns = [], OptionsArray $options = null )
$table Expression The name of the table referenced.
$columns array The columns referenced.
$options OptionsArray The options.

build() public static méthode

public static build ( Reference $component, array $options = [] ) : string
$component Reference The component to be built.
$options array Parameters for building.
Résultat string

parse() public static méthode

public static parse ( Parser $parser, TokensList $list, array $options = [] ) : Reference
$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.
Résultat Reference

Property Details

$REFERENCES_OPTIONS public_oe static_oe property

All references options.
public static array $REFERENCES_OPTIONS
Résultat array

$columns public_oe property

The referenced columns.
public array $columns
Résultat array

$options public_oe property

The options of the referencing.
public OptionsArray,SqlParser\Components $options
Résultat OptionsArray

$table public_oe property

The referenced table.
public Expression,SqlParser\Components $table
Résultat Expression