Class InterpreterSheetState

Description

Used by the PhpMyCellScript interpreter to store the execution state of a worksheet.

Located in /PhpMyCellScript/InterpreterSheetState.php (line 11)


	
			
Variable Summary
Method Summary
InterpreterSheetState __construct (Excel.Worksheet $worksheet)
void __toString ()
Variables
int $column = 1 (line 46)

Keep track of the column position of the current instruction.

  • access: public
array $column_to_last_instruction_data_map = array() (line 79)

For saving some data of the last instruction in each column, to support IF-like and WHILE-like instructions.

Sample:

 		array(
 			// Some data of the IF instruction in the first column.
 			1 => array(
 				'name' => 'PhpMyCellScript.IF', // The full instruction name.
 				'row' => 1, // The row number of the instruction.
 				'is_while_like_instruction' => false, // Whether the instruction is a WHILE-like instruction.
 				'is_if_like_instruction' => true, // Whether the instruction is an IF-like instruction.
 				'entered_if_branch' => true // Whether the IF branch is entered.
 			),
 			// Some data of the WHILE instruction in the second column.
 			2 => array(
 				'name' => 'PhpMyCellScript.WHILE',
 				'row' => 2,
 				'is_while_like_instruction' => true,
 				'is_if_like_instruction' => false
 			),
 			// Some data of the ECHO instruction in the third column.
 			3 => array(
 				'name' => 'PhpMyCellScript\Addons\Example.ECHO',
 				'row' => 3,
 				'is_while_like_instruction' => false,
 				'is_if_like_instruction' => false
 			)
 		)

  • access: public
int $end_column (line 34)

The last column of the worksheet.

  • access: public
int $end_row (line 28)

The last row of the worksheet.

  • access: public
mixed $return_value (line 85)

The return value of the worksheet. Set by the RETURN instruction.

  • access: public
int $row = 0 (line 40)

Keep track of the row position of the current instruction.

  • access: public
Excel.Worksheet $worksheet (line 16)

The worksheet object.

  • access: public
WorksheetCache $worksheet_cache (line 22)

For caching worksheet cell values to improve performance.

  • access: public
Methods
Constructor __construct (line 91)

Constructor

InterpreterSheetState __construct (Excel.Worksheet $worksheet)
  • Excel.Worksheet $worksheet
__toString (line 100)
void __toString ()

Documentation generated on Sun, 01 Mar 2015 08:43:49 +0000 by phpDocumentor 1.4.3