PHP Class SqlParser\Components\AlterOperation

Author: Dan Ungureanu ([email protected])
Inheritance: extends SqlParser\Component
显示文件 Open project: phpmyadmin/sql-parser Class Usage Examples

Public Properties

Property Type Description
$DB_OPTIONS array All database options
$TABLE_OPTIONS array All table options
$VIEW_OPTIONS array All view options
$field Expression The altered field.
$options OptionsArray Options of this operation.
$unknown SqlParser\Token[] | string Unparsed tokens.

Public Methods

Method Description
build ( AlterOperation $component, array $options = [] ) : string
parse ( Parser $parser, TokensList $list, array $options = [] ) : AlterOperation

Method Details

build() public static method

public static build ( AlterOperation $component, array $options = [] ) : string
$component AlterOperation The component to be built.
$options array Parameters for building.
return string

parse() public static method

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

Property Details

$DB_OPTIONS public_oe static_oe property

All database options
public static array $DB_OPTIONS
return array

$TABLE_OPTIONS public_oe static_oe property

All table options
public static array $TABLE_OPTIONS
return array

$VIEW_OPTIONS public_oe static_oe property

All view options
public static array $VIEW_OPTIONS
return array

$field public_oe property

The altered field.
public Expression,SqlParser\Components $field
return Expression

$options public_oe property

Options of this operation.
public OptionsArray,SqlParser\Components $options
return OptionsArray

$unknown public_oe property

Unparsed tokens.
public Token[],SqlParser|string $unknown
return SqlParser\Token[] | string