PHP Class PHPSQLParser\positions\PositionCalculator

Author: AndrĂ© Rothe ([email protected])
Show 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 static property

protected static $allowedOnOperator

$allowedOnOther protected static property

protected static $allowedOnOther

$backtrackingTypes protected static property

protected static $backtrackingTypes

$flippedBacktrackingTypes protected property

protected $flippedBacktrackingTypes