PHP Class PHPSQLParser\positions\PositionCalculator

Author: André Rothe ([email protected])
Mostra file Open project: greenlion/php-sql-parser Class Usage Examples

Protected Properties

Property Type Description
$allowedOnOperator
$allowedOnOther
$backtrackingTypes
$flippedBacktrackingTypes

Public Methods

Method Description
__construct ( ) Constructor.
setPositionsWithinSQL ( $sql, $parsed )

Protected Methods

Method Description
findPositionWithinString ( $sql, $value, $expr_type )
lookForBaseExpression ( $sql, &$charPos, &$parsed, $key, &$backtracking )
printPos ( $text, $sql, $charPos, $key, $parsed, $backtracking )

Method Details

__construct() public method

It initializes some fields.
public __construct ( )

findPositionWithinString() protected method

protected findPositionWithinString ( $sql, $value, $expr_type )

lookForBaseExpression() protected method

protected lookForBaseExpression ( $sql, &$charPos, &$parsed, $key, &$backtracking )

printPos() protected method

protected printPos ( $text, $sql, $charPos, $key, $parsed, $backtracking )

setPositionsWithinSQL() public method

public setPositionsWithinSQL ( $sql, $parsed )

Property Details

$allowedOnOperator protected_oe static_oe property

protected static $allowedOnOperator

$allowedOnOther protected_oe static_oe property

protected static $allowedOnOther

$backtrackingTypes protected_oe static_oe property

protected static $backtrackingTypes

$flippedBacktrackingTypes protected_oe property

protected $flippedBacktrackingTypes