original_string: public function combine($another)
      {
          debug_message(__CLASS__.'.'.__FUNCTION__." LLOM_DataHolder class is ".LOM_DataHolder::getKlass());
          debug_message(__CLASS__.'.'.__FUNCTION__." another is ".get_class($another));
          if (is_a($another, LOM_DataHolder::getKlass())) {
              debug_message('entering function '.__FUNCTION__.' in '.__CLASS__);
              // debug_var_dump("another", $another);
              //identifier
              if (empty($this->identifier)) {
                  debug_message("LOM_DataHolder::identifier should not be empty!!");
                  $this->identifier = $another->identifier;
              } elseif (strcmp(substr($this->identifier, - strlen($another->identifier)), $another->identifier) !== 0) {
                  // debug_var_dump('comparison', strcmp(substr($this->identifier, - strlen($another->identifier)), $another->identifier));
                  // debug_message("found a different identifier for this element ".$this->identifier." != ".$another->identifier);
                  error_log("found a different identifier for this element ".$this->identifier." != ".$another->identifier);
                  return;
              }
              debug_message("Identity ok. Adding elements");
              //continue with other db elements
              $this->addElement('contributor', $another);
              $this->addElement('coverage', $another);
              $this->addElement('creator', $another);
              $this->addElement('date_', $another);
              $this->addElement('description', $another);
              $this->addElement('format_', $another);
              $this->addElement('language', $another);
              $this->addElement('publisher', $another);
              $this->addElement('relation', $another);
              $this->addElement('rights', $another);
              $this->addElement('source', $another);
              $this->addElement('subject', $another);
              $this->addElement('title', $another);
              $this->addElement('type_', $another);
              $this->addElement('thumbnail', $another);
          }
      }
code: public function combine($another)
      {
          debug_message(__CLASS__.'.'.__FUNCTION__." LLOM_DataHolder class is ".LOM_DataHolder::getKlass());
          debug_message(__CLASS__.'.'.__FUNCTION__." another is ".get_class($another));
          if (is_a($another, LOM_DataHolder::getKlass())) {
              debug_message('entering function '.__FUNCTION__.' in '.__CLASS__);
              // debug_var_dump("another", $another);
              //identifier
              if (empty($this->identifier)) {
                  debug_message("LOM_DataHolder::identifier should not be empty!!");
                  $this->identifier = $another->identifier;
              } elseif (strcmp(substr($this->identifier, - strlen($another->identifier)), $another->identifier) !== 0) {
                  // debug_var_dump('comparison', strcmp(substr($this->identifier, - strlen($another->identifier)), $another->identifier));
                  // debug_message("found a different identifier for this element ".$this->identifier." != ".$another->identifier);
                  error_log("found a different identifier for this element ".$this->identifier." != ".$another->identifier);
                  return;
              }
              debug_message("Identity ok. Adding elements");
              //continue with other db elements
              $this->addElement('contributor', $another);
              $this->addElement('coverage', $another);
              $this->addElement('creator', $another);
              $this->addElement('date_', $another);
              $this->addElement('description', $another);
              $this->addElement('format_', $another);
              $this->addElement('language', $another);
              $this->addElement('publisher', $another);
              $this->addElement('relation', $another);
              $this->addElement('rights', $another);
              $this->addElement('source', $another);
              $this->addElement('subject', $another);
              $this->addElement('title', $another);
              $this->addElement('type_', $another);
              $this->addElement('thumbnail', $another);
          }
      }
code_tokens: public function combine ( $ another ) { debug_message ( __CLASS__ . '.' . __FUNCTION__ . " LLOM_DataHolder class is " . LOM_DataHolder :: getKlass ( ) ) ; debug_message ( __CLASS__ . '.' . __FUNCTION__ . " another is " . get_class ( $ another ) ) ; if ( is_a ( $ another , LOM_DataHolder :: getKlass ( ) ) ) { debug_message ( 'entering function ' . __FUNCTION__ . ' in ' . __CLASS__ ) ; // debug_var_dump("another", $another); //identifier if ( empty ( $ this -> identifier ) ) { debug_message ( "LOM_DataHolder::identifier should not be empty!!" ) ; $ this -> identifier = $ another -> identifier ; } elseif ( strcmp ( substr ( $ this -> identifier , - strlen ( $ another -> identifier ) ) , $ another -> identifier ) !== 0 ) { // debug_var_dump('comparison', strcmp(substr($this->identifier, - strlen($another->identifier)), $another->identifier)); // debug_message("found a different identifier for this element ".$this->identifier." != ".$another->identifier); error_log ( "found a different identifier for this element " . $ this -> identifier . " != " . $ another -> identifier ) ; return ; } debug_message ( "Identity ok. Adding elements" ) ; //continue with other db elements $ this -> addElement ( 'contributor' , $ another ) ; $ this -> addElement ( 'coverage' , $ another ) ; $ this -> addElement ( 'creator' , $ another ) ; $ this -> addElement ( 'date_' , $ another ) ; $ this -> addElement ( 'description' , $ another ) ; $ this -> addElement ( 'format_' , $ another ) ; $ this -> addElement ( 'language' , $ another ) ; $ this -> addElement ( 'publisher' , $ another ) ; $ this -> addElement ( 'relation' , $ another ) ; $ this -> addElement ( 'rights' , $ another ) ; $ this -> addElement ( 'source' , $ another ) ; $ this -> addElement ( 'subject' , $ another ) ; $ this -> addElement ( 'title' , $ another ) ; $ this -> addElement ( 'type_' , $ another ) ; $ this -> addElement ( 'thumbnail' , $ another ) ; } }
docstring: Combines this object with another LOM_DataHolder object
docstring_tokens: Combines this object with another LOM_DataHolder object