original_string: public function add_associations($unused = null) {
  
          if ($unused !== null) {
              debugging('Illegal argument used in blog_entry->add_associations()', DEBUG_DEVELOPER);
          }
  
          $this->remove_associations();
  
          if (!empty($this->courseassoc)) {
              $this->add_association($this->courseassoc);
          }
  
          if (!empty($this->modassoc)) {
              $this->add_association($this->modassoc);
          }
      }
code: public function add_associations($unused = null) {
  
          if ($unused !== null) {
              debugging('Illegal argument used in blog_entry->add_associations()', DEBUG_DEVELOPER);
          }
  
          $this->remove_associations();
  
          if (!empty($this->courseassoc)) {
              $this->add_association($this->courseassoc);
          }
  
          if (!empty($this->modassoc)) {
              $this->add_association($this->modassoc);
          }
      }
code_tokens: public function add_associations ( $ unused = null ) { if ( $ unused !== null ) { debugging ( 'Illegal argument used in blog_entry->add_associations()' , DEBUG_DEVELOPER ) ; } $ this -> remove_associations ( ) ; if ( ! empty ( $ this -> courseassoc ) ) { $ this -> add_association ( $ this -> courseassoc ) ; } if ( ! empty ( $ this -> modassoc ) ) { $ this -> add_association ( $ this -> modassoc ) ; } }
docstring: Function to add all context associations to an entry.
  
  @param string $unused This does nothing, do not use it.
docstring_tokens: Function to add all context associations to an entry .