/**
  * Extracts attribute contents FROM a parent tree object
  *
  * @param array  $tree an array containing an array FROM which the
  *                     object data should be extracted
  * @param string $ver  represents the version of the GEDCOM standard
  *                     data is being extracted from
  *
  * @return void
  *
  * @access public
  * @since Method available since Release 0.0.1
  */
 public function parse_tree($tree, $ver)
 {
     $this->ver = $ver;
     $this->rp_name->parse_tree($tree, $ver);
     if (isset($tree[0][1])) {
         $sub2 = $tree[0][1];
         $off = 0;
         while (($i1 = parent::find_tag($sub2, Rp_Tags::PHONETIC, $off)) !== false) {
             $name = new RP_Name();
             $name->parse_tree(array($sub2[$i1]), $ver);
             $this->phonetic_names[] = $name;
             $off = $i1 + 1;
         }
         $off = 0;
         while (($i1 = parent::find_tag($sub2, Rp_Tags::ROMANIZED, $off)) !== false) {
             $name = new RP_Name();
             $name->parse_tree(array($sub2[$i1]), $ver);
             $this->romanized_names[] = $name;
             $off = $i1 + 1;
         }
     }
 }