| @@ 5029-5041 (lines=13) @@ | ||
| 5026 | error_log('New LP - In learnpath::stop_previous_item() - ' . $this->last . ' is object', 0); |
|
| 5027 | } |
|
| 5028 | switch ($this->get_type()) { |
|
| 5029 | case '3' : |
|
| 5030 | if ($this->items[$this->last]->get_type() != 'au') { |
|
| 5031 | if ($this->debug > 2) { |
|
| 5032 | error_log('New LP - In learnpath::stop_previous_item() - ' . $this->last . ' in lp_type 3 is <> au', 0); |
|
| 5033 | } |
|
| 5034 | $this->items[$this->last]->close(); |
|
| 5035 | //$this->autocomplete_parents($this->last); |
|
| 5036 | //$this->update_queue[$this->last] = $this->items[$this->last]->get_status(); |
|
| 5037 | } else { |
|
| 5038 | if ($this->debug > 2) { |
|
| 5039 | error_log('New LP - In learnpath::stop_previous_item() - Item is an AU, saving is managed by AICC signals', 0); |
|
| 5040 | } |
|
| 5041 | } |
|
| 5042 | case '2' : |
|
| 5043 | if ($this->items[$this->last]->get_type() != 'sco') { |
|
| 5044 | if ($this->debug > 2) { |
|
| @@ 5042-5055 (lines=14) @@ | ||
| 5039 | error_log('New LP - In learnpath::stop_previous_item() - Item is an AU, saving is managed by AICC signals', 0); |
|
| 5040 | } |
|
| 5041 | } |
|
| 5042 | case '2' : |
|
| 5043 | if ($this->items[$this->last]->get_type() != 'sco') { |
|
| 5044 | if ($this->debug > 2) { |
|
| 5045 | error_log('New LP - In learnpath::stop_previous_item() - ' . $this->last . ' in lp_type 2 is <> sco', 0); |
|
| 5046 | } |
|
| 5047 | $this->items[$this->last]->close(); |
|
| 5048 | //$this->autocomplete_parents($this->last); |
|
| 5049 | //$this->update_queue[$this->last] = $this->items[$this->last]->get_status(); |
|
| 5050 | } else { |
|
| 5051 | if ($this->debug > 2) { |
|
| 5052 | error_log('New LP - In learnpath::stop_previous_item() - Item is a SCO, saving is managed by SCO signals', 0); |
|
| 5053 | } |
|
| 5054 | } |
|
| 5055 | break; |
|
| 5056 | case '1' : |
|
| 5057 | default : |
|
| 5058 | if ($this->debug > 2) { |
|