Class ilDclStack.
More...
◆ count()
◆ debug()
Definition at line 74 of file class.ilDclStack.php.
74 {
75 echo "<pre>" . print_r($this->stack, 1) . "</pre>";
76 }
◆ isEmpty()
◆ pop()
- Returns
- null
Definition at line 28 of file class.ilDclStack.php.
28 {
30 $last_index =
count($this->stack) - 1;
31 $elem = $this->stack[$last_index];
32 unset($this->stack[$last_index]);
33 $this->stack = array_values($this->stack);
34 return $elem;
35 }
36
37 return NULL;
38 }
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: