PHP Class SqlParser\Token

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

Public Properties

Property Type Description
$flags integer The flags of this token.
$position integer The position in the initial string where this token started.
$token string The token it its raw string representation.
$type integer The type of this token.
$value mixed The value this token contains (i.e. token after some evaluation)

Public Methods

Method Description
__construct ( string $token, integer $type, integer $flags ) Constructor.
extract ( ) : mixed Does little processing to the token to extract a value.
getInlineToken ( ) : string Converts the token into an inline token by replacing tabs and new lines.

Method Details

__construct() public method

Constructor.
public __construct ( string $token, integer $type, integer $flags )
$token string The value of the token.
$type integer The type of the token.
$flags integer The flags of the token.

extract() public method

If no processing can be done it will return the initial string.
public extract ( ) : mixed
return mixed

getInlineToken() public method

Converts the token into an inline token by replacing tabs and new lines.
public getInlineToken ( ) : string
return string

Property Details

$flags public_oe property

The flags of this token.
public int $flags
return integer

$position public_oe property

The position in the initial string where this token started.
public int $position
return integer

$token public_oe property

The token it its raw string representation.
public string $token
return string

$type public_oe property

The type of this token.
public int $type
return integer

$value public_oe property

The value this token contains (i.e. token after some evaluation)
public mixed $value
return mixed