PHPExcel_Calculation

# Class: PHPExcel_Calculation_FormulaParser Source Location: /PHPExcel/Calculation/FormulaParser.php
### Class Overview
PHPExcel_Calculation_FormulaParser #### Author(s): #### Copyright: Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) | ### Variables $_formula $_tokens | ### Constants BRACE_CLOSE BRACE_OPEN BRACKET_CLOSE BRACKET_OPEN COMMA ERROR_START OPERATORS_INFIX OPERATORS_POSTFIX OPERATORS_SN PAREN_CLOSE PAREN_OPEN QUOTE_DOUBLE QUOTE_SINGLE SEMICOLON WHITESPACE | ### Methods __construct getFormula getToken getTokenCount getTokens _parseToTokens
### Class Details [line 70] PHPExcel_Calculation_FormulaParser PHPExcel_Calculation_FormulaParser #### Tags:
copyright: | Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
[ Top ] ### Class Variables #### $_formula = [line 94] Formula Formula #### Tags:
access: | private
Type: | string
[ Top ] #### $_tokens = array() [line 101] Tokens Tokens #### Tags:
access: | private
Type: | PHPExcel_Calculation_FormulaToken[]
[ Top ] ### Class Methods ### constructor __construct [line 109]
`PHPExcel_Calculation_FormulaParser __construct( [string $pFormula = ''])`
Create a new PHPExcel_Calculation_FormulaParser Create a new PHPExcel_Calculation_FormulaParser #### Tags:
throws: | Exception
access: | public
#### Parameters:
string | $pFormula | Formula to parse
[ Top ] ### method getFormula [line 127]
`string getFormula( )`
Get Formula Get Formula #### Tags:
access: | public
[ Top ] ### method getToken [line 138]
`string getToken( [int $pId = 0])`
Get Token Get Token #### Tags:
throws: | Exception
access: | public
#### Parameters:
int | $pId | Token id
[ Top ] ### method getTokenCount [line 151]
`string getTokenCount( )`
Get Token count Get Token count #### Tags:
access: | public
[ Top ] ### method getTokens [line 160]
`PHPExcel_Calculation_FormulaToken[] getTokens( )`
Get Tokens Get Tokens #### Tags:
access: | public
[ Top ] ### method _parseToTokens [line 167]
`void _parseToTokens( )`
Parse to tokens Parse to tokens #### Tags:
access: | private
[ Top ] ### Class Constants #### BRACE_CLOSE = '}' [line 77] [ Top ] #### BRACE_OPEN = '{' [line 76] [ Top ] #### BRACKET_CLOSE = ']' [line 74] [ Top ] #### BRACKET_OPEN = '[' [line 75] [ Top ] #### COMMA = ',' [line 82] [ Top ] #### ERROR_START = '#' [line 83] [ Top ] #### OPERATORS_INFIX = "+-*/^&=><" [line 86] [ Top ] #### OPERATORS_POSTFIX = "%" [line 87] [ Top ] #### OPERATORS_SN = "+-" [line 85] [ Top ] #### PAREN_CLOSE = ')' [line 79] [ Top ] #### PAREN_OPEN = '(' [line 78] [ Top ] #### QUOTE_DOUBLE = '"' [line 72] [ Top ] #### QUOTE_SINGLE = '\'' [line 73] [ Top ] #### SEMICOLON = ';' [line 80] [ Top ] #### WHITESPACE = ' ' [line 81] [ Top ] Documentation generated on Mon, 11 Jan 2010 08:09:44 +0100 by phpDocumentor 1.4.1