You are here

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

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

Tag data function.

File

src/XML2Array.php, line 45

Class

XML2Array
Class XML2Array.

Namespace

Drupal\opigno_scorm

Code

public function tagData($parser, $tagData) {
  if (trim($tagData)) {
    if (isset($this->output[count($this->output) - 1]['tagData'])) {
      $this->output[count($this->output) - 1]['tagData'] .= $tagData;
    }
    else {
      $this->output[count($this->output) - 1]['tagData'] = $tagData;
    }
  }
}