You are here

class PHPExcel_CalcEngine_CyclicReferenceStack in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CalcEngine/CyclicReferenceStack.php \PHPExcel_CalcEngine_CyclicReferenceStack

PHPExcel_CalcEngine_CyclicReferenceStack

@category PHPExcel_CalcEngine_CyclicReferenceStack @package PHPExcel_Calculation @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)

Hierarchy

Expanded class hierarchy of PHPExcel_CalcEngine_CyclicReferenceStack

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/CalcEngine/CyclicReferenceStack.php, line 36

View source
class PHPExcel_CalcEngine_CyclicReferenceStack {

  /**
   *  The call stack for calculated cells
   *
   *  @var mixed[]
   */
  private $_stack = array();

  /**
   * Return the number of entries on the stack
   *
   * @return  integer
   */
  public function count() {
    return count($this->_stack);
  }

  /**
   * Push a new entry onto the stack
   *
   * @param  mixed  $value
   */
  public function push($value) {
    $this->_stack[$value] = $value;
  }

  /**
   * Pop the last entry from the stack
   *
   * @return  mixed
   */
  public function pop() {
    return array_pop($this->_stack);
  }

  /**
   * Test to see if a specified entry exists on the stack
   *
   * @param  mixed  $value  The value to test
   */
  public function onStack($value) {
    return isset($this->_stack[$value]);
  }

  /**
   * Clear the stack
   */
  public function clear() {
    $this->_stack = array();
  }

  /**
   * Return an array of all entries on the stack
   *
   * @return  mixed[]
   */
  public function showStack() {
    return $this->_stack;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
PHPExcel_CalcEngine_CyclicReferenceStack::$_stack private property * The call stack for calculated cells * *
PHPExcel_CalcEngine_CyclicReferenceStack::clear public function * Clear the stack
PHPExcel_CalcEngine_CyclicReferenceStack::count public function * Return the number of entries on the stack * *
PHPExcel_CalcEngine_CyclicReferenceStack::onStack public function * Test to see if a specified entry exists on the stack * *
PHPExcel_CalcEngine_CyclicReferenceStack::pop public function * Pop the last entry from the stack * *
PHPExcel_CalcEngine_CyclicReferenceStack::push public function * Push a new entry onto the stack * *
PHPExcel_CalcEngine_CyclicReferenceStack::showStack public function * Return an array of all entries on the stack * *