\PHPExcel_Calculation_FormulaParser

PHPExcel_Calculation_FormulaParser

Summary

Methods
Properties
Constants
__construct()
getFormula()
getToken()
getTokenCount()
getTokens()
No public properties found
QUOTE_DOUBLE
QUOTE_SINGLE
BRACKET_CLOSE
BRACKET_OPEN
BRACE_OPEN
BRACE_CLOSE
PAREN_OPEN
PAREN_CLOSE
SEMICOLON
WHITESPACE
COMMA
ERROR_START
OPERATORS_SN
OPERATORS_INFIX
OPERATORS_POSTFIX
No protected methods found
No protected properties found
N/A
_parseToTokens()
$_formula
$_tokens
N/A

Constants

QUOTE_DOUBLE

QUOTE_DOUBLE = '"'

QUOTE_SINGLE

QUOTE_SINGLE = '\''

BRACKET_CLOSE

BRACKET_CLOSE = ']'

BRACKET_OPEN

BRACKET_OPEN = '['

BRACE_OPEN

BRACE_OPEN = '{'

BRACE_CLOSE

BRACE_CLOSE = '}'

PAREN_OPEN

PAREN_OPEN = '('

PAREN_CLOSE

PAREN_CLOSE = ')'

SEMICOLON

SEMICOLON = ';'

WHITESPACE

WHITESPACE = ' '

COMMA

COMMA = ','

ERROR_START

ERROR_START = '#'

OPERATORS_SN

OPERATORS_SN = "+-"

OPERATORS_INFIX

OPERATORS_INFIX = "+-*/^&=><"

OPERATORS_POSTFIX

OPERATORS_POSTFIX = "%"

Properties

$_formula

$_formula : string

Formula

Type

string

Methods

__construct()

__construct(string  $pFormula = '') 

Create a new PHPExcel_Calculation_FormulaParser

Parameters

string $pFormula

Formula to parse

Throws

\PHPExcel_Calculation_Exception

getFormula()

getFormula() : string

Get Formula

Returns

string

getToken()

getToken(integer  $pId) : string

Get Token

Parameters

integer $pId

Token id

Throws

\PHPExcel_Calculation_Exception

Returns

string

getTokenCount()

getTokenCount() : string

Get Token count

Returns

string

_parseToTokens()

_parseToTokens() 

Parse to tokens