PHP 클래스 PHPSQLParser\processors\AbstractProcessor

저자: André Rothe ([email protected])
파일 보기 프로젝트 열기: greenlion/php-sql-parser 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$options PHPSQLParser\Options

공개 메소드들

메소드 설명
__construct ( Options $options ) AbstractProcessor constructor.
process ( $tokens ) This function implements the main functionality of a processor class.
processComment ( $expression )
splitSQLIntoTokens ( $sql ) this function splits up a SQL statement into easy to "parse" tokens for the SQL processor
toArray ( $tokenList ) translates an array of objects into an associative array

보호된 메소드들

메소드 설명
array_insert_after ( $array, $key, $entry )
getVariableType ( $expression )
isAggregateFunction ( $out )
isBracketExpression ( $out )
isColumnReference ( $out )
isCommaToken ( $token )
isComment ( $out )
isCommentToken ( $token )
isConstant ( $out )
isCustomFunction ( $out )
isExpression ( $out )
isFunction ( $out )
isReserved ( $out )
isSubQuery ( $out )
isWhitespaceToken ( $token )
removeParenthesisFromStart ( $token ) This method removes parenthesis from start of the given string.
revokeQuotation ( $sql ) Revokes the quoting characters from an expression Possibibilies: a 'a' "a" a.b a.b a.b a.b It is also possible to have escaped quoting characters within an expression part: ab => ab And you can use whitespace between the parts: a . b => [a,b]

메소드 상세

__construct() 공개 메소드

AbstractProcessor constructor.
public __construct ( Options $options )
$options PHPSQLParser\Options

array_insert_after() 보호된 메소드

protected array_insert_after ( $array, $key, $entry )

getVariableType() 보호된 메소드

protected getVariableType ( $expression )

isAggregateFunction() 보호된 메소드

protected isAggregateFunction ( $out )

isBracketExpression() 보호된 메소드

protected isBracketExpression ( $out )

isColumnReference() 보호된 메소드

protected isColumnReference ( $out )

isCommaToken() 보호된 메소드

protected isCommaToken ( $token )

isComment() 보호된 메소드

protected isComment ( $out )

isCommentToken() 보호된 메소드

protected isCommentToken ( $token )

isConstant() 보호된 메소드

protected isConstant ( $out )

isCustomFunction() 보호된 메소드

protected isCustomFunction ( $out )

isExpression() 보호된 메소드

protected isExpression ( $out )

isFunction() 보호된 메소드

protected isFunction ( $out )

isReserved() 보호된 메소드

protected isReserved ( $out )

isSubQuery() 보호된 메소드

protected isSubQuery ( $out )

isWhitespaceToken() 보호된 메소드

protected isWhitespaceToken ( $token )

process() 추상적인 공개 메소드

Always use default valuses for additional parameters within overridden functions.
abstract public process ( $tokens )

processComment() 공개 메소드

public processComment ( $expression )

removeParenthesisFromStart() 보호된 메소드

It removes also the associated closing parenthesis.
protected removeParenthesisFromStart ( $token )

revokeQuotation() 보호된 메소드

Revokes the quoting characters from an expression Possibibilies: a 'a' "a" a.b a.b a.b a.b It is also possible to have escaped quoting characters within an expression part: ab => ab And you can use whitespace between the parts: a . b => [a,b]
protected revokeQuotation ( $sql )

splitSQLIntoTokens() 공개 메소드

this function splits up a SQL statement into easy to "parse" tokens for the SQL processor
public splitSQLIntoTokens ( $sql )

toArray() 공개 메소드

translates an array of objects into an associative array
public toArray ( $tokenList )

프로퍼티 상세

$options 보호되어 있는 프로퍼티

protected Options,PHPSQLParser $options
리턴 PHPSQLParser\Options