Class ilDclStack.
More...
◆ count()
◆ debug()
Definition at line 81 of file class.ilDclStack.php.
82 {
83 echo "<pre>" . print_r($this->stack, 1) . "</pre>";
84 }
◆ isEmpty()
◆ pop()
- Returns
- null
Definition at line 30 of file class.ilDclStack.php.
31 {
33 $last_index =
count($this->stack) - 1;
34 $elem = $this->stack[$last_index];
35 unset($this->stack[$last_index]);
36 $this->stack = array_values($this->stack);
37 return $elem;
38 }
39
40 return null;
41 }
References count(), and isEmpty().
◆ push()
ilDclStack::push |
( |
|
$elem | ) |
|
◆ reset()
◆ top()
◆ $stack
ilDclStack::$stack = array() |
|
protected |
The documentation for this class was generated from the following file: