PHP Class SqlParser\Components\Condition

Author: Dan Ungureanu ([email protected])
Inheritance: extends SqlParser\Component
Afficher le fichier Open project: phpmyadmin/sql-parser Class Usage Examples

Méthodes publiques

Свойство Type Description
$ALLOWED_KEYWORDS array List of allowed reserved keywords in conditions.
$DELIMITERS array Logical operators that can be used to delimit expressions.
$expr string The condition.
$identifiers array Identifiers recognized.
$isOperator boolean Whether this component is an operator.

Méthodes publiques

Méthode Description
__construct ( string $expr = null ) Constructor.
build ( Condition[] $component, array $options = [] ) : string
parse ( Parser $parser, TokensList $list, array $options = [] ) : Condition[]

Method Details

__construct() public méthode

Constructor.
public __construct ( string $expr = null )
$expr string The condition or the operator.

build() public static méthode

public static build ( Condition[] $component, array $options = [] ) : string
$component Condition[] 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 = [] ) : Condition[]
$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 Condition[]

Property Details

$ALLOWED_KEYWORDS public_oe static_oe property

List of allowed reserved keywords in conditions.
public static array $ALLOWED_KEYWORDS
Résultat array

$DELIMITERS public_oe static_oe property

Logical operators that can be used to delimit expressions.
public static array $DELIMITERS
Résultat array

$expr public_oe property

The condition.
public string $expr
Résultat string

$identifiers public_oe property

Identifiers recognized.
public array $identifiers
Résultat array

$isOperator public_oe property

Whether this component is an operator.
public bool $isOperator
Résultat boolean