Class ilDclStack.
More...
◆ count()
◆ debug()
Definition at line 82 of file class.ilDclStack.php.
83 {
84 echo "<pre>" . print_r($this->stack, 1) . "</pre>";
85 }
◆ 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
38 return $elem;
39 }
40
41 return null;
42 }
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: