You are here

public function XML2Array::tagClosed in Opigno SCORM 3.x

Same name and namespace in other branches
  1. 8 src/XML2Array.php \Drupal\opigno_scorm\XML2Array::tagClosed()

Tag closed function.

File

src/XML2Array.php, line 59

Class

XML2Array
Class XML2Array.

Namespace

Drupal\opigno_scorm

Code

public function tagClosed($parser, $name) {
  $this->output[count($this->output) - 2]['children'][] = $this->output[count($this->output) - 1];
  array_pop($this->output);
}