Parsed: 112282

  private function HandleEMBLSimpleTag($parent_end) {
    $simpletag_entry = array();

    while ($this->getid3_matroska::getEBMLelement($element, $parent_end, array(EBML_ID_SIMPLETAG))) {
      switch ($element['id']) {

        case EBML_ID_TAGNAME:
        case EBML_ID_TAGLANGUAGE:
        case EBML_ID_TAGSTRING:
        case EBML_ID_TAGBINARY:
          $simpletag_entry[$element['id_name']] = $element['data'];
          break;

        case EBML_ID_SIMPLETAG:
          $simpletag_entry[$element['id_name']][] = $this->getid3_matroska::HandleEMBLSimpleTag($element['end']);
          break;

        case EBML_ID_TAGDEFAULT:
          $simpletag_entry[$element['id_name']] = (bool)getid3_lib::BigEndian2Int($element['data']);
          break;

        default:
          $this->getid3_matroska::unhandledElement('tag.simpletag', __LINE__, $element);
          break;
      }
    }

    return $simpletag_entry;
  }