| @@ 5239-5252 (lines=14) @@ | ||
| 5236 | error_log('New LP - In learnpath::stop_previous_item() - '.$this->last.' is object', 0); |
|
| 5237 | } |
|
| 5238 | switch ($this->get_type()) { |
|
| 5239 | case '3': |
|
| 5240 | if ($this->items[$this->last]->get_type() != 'au') { |
|
| 5241 | if ($this->debug > 2) { |
|
| 5242 | error_log('New LP - In learnpath::stop_previous_item() - '.$this->last.' in lp_type 3 is <> au', 0); |
|
| 5243 | } |
|
| 5244 | $this->items[$this->last]->close(); |
|
| 5245 | //$this->autocomplete_parents($this->last); |
|
| 5246 | //$this->update_queue[$this->last] = $this->items[$this->last]->get_status(); |
|
| 5247 | } else { |
|
| 5248 | if ($this->debug > 2) { |
|
| 5249 | error_log('New LP - In learnpath::stop_previous_item() - Item is an AU, saving is managed by AICC signals', 0); |
|
| 5250 | } |
|
| 5251 | } |
|
| 5252 | break; |
|
| 5253 | case '2': |
|
| 5254 | if ($this->items[$this->last]->get_type() != 'sco') { |
|
| 5255 | if ($this->debug > 2) { |
|
| @@ 5253-5266 (lines=14) @@ | ||
| 5250 | } |
|
| 5251 | } |
|
| 5252 | break; |
|
| 5253 | case '2': |
|
| 5254 | if ($this->items[$this->last]->get_type() != 'sco') { |
|
| 5255 | if ($this->debug > 2) { |
|
| 5256 | error_log('New LP - In learnpath::stop_previous_item() - '.$this->last.' in lp_type 2 is <> sco', 0); |
|
| 5257 | } |
|
| 5258 | $this->items[$this->last]->close(); |
|
| 5259 | //$this->autocomplete_parents($this->last); |
|
| 5260 | //$this->update_queue[$this->last] = $this->items[$this->last]->get_status(); |
|
| 5261 | } else { |
|
| 5262 | if ($this->debug > 2) { |
|
| 5263 | error_log('New LP - In learnpath::stop_previous_item() - Item is a SCO, saving is managed by SCO signals', 0); |
|
| 5264 | } |
|
| 5265 | } |
|
| 5266 | break; |
|
| 5267 | case '1': |
|
| 5268 | default: |
|
| 5269 | if ($this->debug > 2) { |
|