PHPExcel_Writer_Excel5_Parser
| category | PHPExcel |
|---|---|
| package | PHPExcel_Writer_Excel5 |
| copyright | Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) |
__construct()
_advance()
| access | private |
|---|
_cellToPackedRowcol(string $cell) : array
| access | private |
|---|
stringThe Excel cell reference to be packed
arrayArray 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 |
|---|
stringThe Excel cell reference in A1 format.
array_condition() : mixed
It assumes the following rule: Cond -> Expr [(">" | "<") Expr]
| access | private |
|---|
mixedThe parsed ptg'd tree on success_convert(mixed $token) : mixed
| access | private |
|---|
mixedThe token to convert.
mixedthe converted token on success_convertError(string $errorCode) : string
| access | private |
|---|
stringThe error code for conversion to its ptg value
stringThe error code ptgErr_convertFunction(string $token, integer $num_args) : string
| access | private |
|---|
stringThe name of the function for convertion to ptg value.
integerThe number of arguments the function receives.
stringThe packed ptg for the function_convertNumber(mixed $num)
| access | private |
|---|
mixedan integer or double for conversion to its ptg value
_convertRange2d(string $range, int $class)
| access | private |
|---|
stringAn Excel range in the A1:A2
int
_convertRange3d(string $token) : mixed
| access | private |
|---|
stringAn Excel range in the Sheet1!A1:A2 format.
mixedThe packed ptgArea3d token on success._convertRef2d(string $cell) : string
| access | private |
|---|
stringAn Excel cell reference
stringThe cell in packed() format with the corresponding ptg_convertRef3d(string $cell) : mixed
| access | private |
|---|
stringAn Excel cell reference
mixedThe packed ptgRef3d token on success._convertString(string $string) : mixed
| access | private |
|---|
stringA string for conversion to its ptg value.
mixedthe 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 |
|---|
mixedThe value of this node.
mixedThe left array (sub-tree) or a final node.
mixedThe right array (sub-tree) or a final node.
arrayA tree_expression() : mixed
It assumes the following rule: Expr -> Term [("+" | "-") Term] -> "string" -> "-" Term : Negative value -> "+" Term : Positive value -> Error code
| access | private |
|---|
mixedThe parsed ptg'd tree on success_fact() : mixed
It assumes the following rule: Fact -> ( Expr ) | CellRef | CellRange | Number | Function
| access | private |
|---|
mixedThe parsed ptg'd tree on success_func() : mixed
It assumes the following rule: Func -> ( Expr [,Expr]* )
| access | private |
|---|
mixedThe 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 |
|---|
stringThe name of the external reference
mixedThe 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 |
|---|
stringSheet name
integerThe sheet index, -1 if the sheet was not found_initializeHashes()
| access | private |
|---|
_match(mixed $token) : mixed
| access | private |
|---|
mixedThe token to check.
mixedThe checked token or false on failure_packExtRef(string $ext_ref) : string
| access | private |
|---|
stringThe name of the external reference
stringThe 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 |
|---|
stringThe Excel range to be packed
arrayArray containing (row1,col1,row2,col2) in packed() format_term() : mixed
It assumes the following rule: Term -> Fact [("*" | "/") Fact]
| access | private |
|---|
mixedThe parsed ptg'd tree on successparse(string $formula) : mixed
It parses a formula.
| access | public |
|---|
stringThe formula to parse, without the initial equal sign (=).
mixedtrue 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() |
stringThe name of the worksheet being added
integerThe 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 |
|---|
arrayThe optional tree to convert.
stringThe 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