ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
PHPExcel_CalcEngine_CyclicReferenceStack Class Reference
+ Collaboration diagram for PHPExcel_CalcEngine_CyclicReferenceStack:

Public Member Functions

 count ()
 Return the number of entries on the stack. More...
 
 push ($value)
 Push a new entry onto the stack. More...
 
 pop ()
 Pop the last entry from the stack. More...
 
 onStack ($value)
 Test to see if a specified entry exists on the stack. More...
 
 clear ()
 Clear the stack. More...
 
 showStack ()
 Return an array of all entries on the stack. More...
 

Private Attributes

 $_stack = array()
 

Detailed Description

Definition at line 36 of file CyclicReferenceStack.php.

Member Function Documentation

◆ clear()

PHPExcel_CalcEngine_CyclicReferenceStack::clear ( )

Clear the stack.

Definition at line 85 of file CyclicReferenceStack.php.

85 {
86 $this->_stack = array();
87 }

◆ count()

PHPExcel_CalcEngine_CyclicReferenceStack::count ( )

Return the number of entries on the stack.

Returns
integer

Definition at line 51 of file CyclicReferenceStack.php.

51 {
52 return count($this->_stack);
53 }
count()
Return the number of entries on the stack.

References count().

Referenced by count().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onStack()

PHPExcel_CalcEngine_CyclicReferenceStack::onStack (   $value)

Test to see if a specified entry exists on the stack.

Parameters
mixed$valueThe value to test

Definition at line 78 of file CyclicReferenceStack.php.

78 {
79 return isset($this->_stack[$value]);
80 }

◆ pop()

PHPExcel_CalcEngine_CyclicReferenceStack::pop ( )

Pop the last entry from the stack.

Returns
mixed

Definition at line 69 of file CyclicReferenceStack.php.

69 {
70 return array_pop($this->_stack);
71 }

◆ push()

PHPExcel_CalcEngine_CyclicReferenceStack::push (   $value)

Push a new entry onto the stack.

Parameters
mixed$value

Definition at line 60 of file CyclicReferenceStack.php.

60 {
61 $this->_stack[$value] = $value;
62 }

◆ showStack()

PHPExcel_CalcEngine_CyclicReferenceStack::showStack ( )

Return an array of all entries on the stack.

Returns
mixed[]

Definition at line 94 of file CyclicReferenceStack.php.

References $_stack.

Field Documentation

◆ $_stack

PHPExcel_CalcEngine_CyclicReferenceStack::$_stack = array()
private

Definition at line 43 of file CyclicReferenceStack.php.

Referenced by showStack().


The documentation for this class was generated from the following file: