PHPExcel_Writer_Excel5_Parser
category | PHPExcel |
---|---|
package | PHPExcel_Writer_Excel5 |
copyright | Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) |
__construct()
_advance()
access | private |
---|
_cellToPackedRowcol(string $cell) : array
access | private |
---|
string
The Excel cell reference to be packed
array
Array containing the row and column in packed() format_cellToRowcol(string $cell) : array
Also returns two (0,1) values to indicate whether the row or column are relative references.
access | private |
---|
string
The Excel cell reference in A1 format.
array
_condition() : mixed
It assumes the following rule: Cond -> Expr [(">" | "<") Expr]
access | private |
---|
mixed
The parsed ptg'd tree on success_convert(mixed $token) : mixed
access | private |
---|
mixed
The token to convert.
mixed
the converted token on success_convertError(string $errorCode) : string
access | private |
---|
string
The error code for conversion to its ptg value
string
The error code ptgErr_convertFunction(string $token, integer $num_args) : string
access | private |
---|
string
The name of the function for convertion to ptg value.
integer
The number of arguments the function receives.
string
The packed ptg for the function_convertNumber(mixed $num)
access | private |
---|
mixed
an integer or double for conversion to its ptg value
_convertRange2d(string $range, int $class)
access | private |
---|
string
An Excel range in the A1:A2
int
_convertRange3d(string $token) : mixed
access | private |
---|
string
An Excel range in the Sheet1!A1:A2 format.
mixed
The packed ptgArea3d token on success._convertRef2d(string $cell) : string
access | private |
---|
string
An Excel cell reference
string
The cell in packed() format with the corresponding ptg_convertRef3d(string $cell) : mixed
access | private |
---|
string
An Excel cell reference
mixed
The packed ptgRef3d token on success._convertString(string $string) : mixed
access | private |
---|
string
A string for conversion to its ptg value.
mixed
the converted token on success_createTree(mixed $value, mixed $left, mixed $right) : array
In fact an array which may have one or two arrays (sub-trees) as elements.
access | private |
---|
mixed
The value of this node.
mixed
The left array (sub-tree) or a final node.
mixed
The right array (sub-tree) or a final node.
array
A tree_expression() : mixed
It assumes the following rule: Expr -> Term [("+" | "-") Term] -> "string" -> "-" Term : Negative value -> "+" Term : Positive value -> Error code
access | private |
---|
mixed
The parsed ptg'd tree on success_fact() : mixed
It assumes the following rule: Fact -> ( Expr ) | CellRef | CellRange | Number | Function
access | private |
---|
mixed
The parsed ptg'd tree on success_func() : mixed
It assumes the following rule: Func -> ( Expr [,Expr]* )
access | private |
---|
mixed
The parsed ptg'd tree on success_getRefIndex(string $ext_ref) : mixed
If it doesn't exist yet add it to the workbook's references array. It assumes all sheet names given must exist.
access | private |
---|
string
The name of the external reference
mixed
The reference index in packed() format on success_getSheetIndex(string $sheet_name) : integer
The hash of sheet names is updated by the addworksheet() method of the PHPExcel_Writer_Excel5_Workbook class.
access | private |
---|
string
Sheet name
integer
The sheet index, -1 if the sheet was not found_initializeHashes()
access | private |
---|
_match(mixed $token) : mixed
access | private |
---|
mixed
The token to check.
mixed
The checked token or false on failure_packExtRef(string $ext_ref) : string
access | private |
---|
string
The name of the external reference
string
The reference index in packed() format_parenthesizedExpression() : array
_rangeToPackedRange(string $range) : array
Just using maximum col/rows, which is probably not the correct solution
access | private |
---|
string
The Excel range to be packed
array
Array containing (row1,col1,row2,col2) in packed() format_term() : mixed
It assumes the following rule: Term -> Fact [("*" | "/") Fact]
access | private |
---|
mixed
The parsed ptg'd tree on successparse(string $formula) : mixed
It parses a formula.
access | public |
---|
string
The formula to parse, without the initial equal sign (=).
mixed
true on successsetExtSheet(string $name, integer $index)
It is called by the addWorksheet() method of the PHPExcel_Writer_Excel5_Workbook class.
access | public |
---|---|
see | \PHPExcel_Writer_Excel5_Workbook::addWorksheet() |
string
The name of the worksheet being added
integer
The index of the worksheet being added
toReversePolish(array $tree) : string
The following tree:
+ / \ 2 3
produces: "23+"
The following tree:
+ / \ 3 * / \ 6 A1
produces: "36A1*+"
In fact all operands, functions, references, etc... are written as ptg's
access | public |
---|
array
The optional tree to convert.
string
The tree in reverse polish notation$_current_char : integer
$_current_token : string
$_ext_sheets : array
$_formula : string
$_lookahead : string
$_parse_tree : string
$_references : array
REGEX_SHEET_TITLE_QUOTED
REGEX_SHEET_TITLE_UNQUOTED