original_string: public function prepare() {
  
  		$object_type = $this->getObjectType();
  
  		$object_link = elgg_view('output/url', array(
  			'text' => $this->object->getDisplayName(),
  			'href' => elgg_http_add_url_query_elements($this->object->getURL(), array(
  				'active_tab' => 'comments',
  			)),
  		));
  
  		if ($this->author->guid == $this->object->owner_guid) {
  			$object_summary_title = elgg_echo('interactions:ownership:own', array($object_type), $this->language);
  		} else if ($this->recipient->guid == $this->object->owner_guid) {
  			$object_summary_title = elgg_echo('interactions:ownership:your', array($object_type), $this->language);
  		} else {
  			$object_owner = $this->object->getOwnerEntity() ? : elgg_get_site_entity();
  			$object_summary_title = elgg_echo('interactions:ownership:owner', array($object_owner->getDisplayName(), $object_type), $this->language);
  		}
  
  		if ($this->object instanceof Comment) {
  			$object_full_title = $object_summary_title;
  		} else {
  			$object_full_title = $object_summary_title . ' ' . $object_link;
  		}
  
  		if ($this->root->guid !== $this->object->guid) {
  			$root_link = elgg_view('output/url', array(
  				'text' => $this->root->getDisplayName(),
  				'href' => elgg_http_add_url_query_elements($this->root->getURL(), array(
  					'active_tab' => 'comments',
  				)),
  			));
  			$object_full_title .= ' ' . elgg_echo('interactions:comment:in_thread', array($root_link));
  		}
  
  		$author_link = elgg_view('output/url', array(
  			'text' => $this->author->name,
  			'href' => $this->author->getURL(),
  		));
  
  		$object_summary_link = elgg_view('output/url', array(
  			'text' => $object_summary_title,
  			'href' => elgg_http_add_url_query_elements($this->object->getURL(), array(
  				'active_tab' => 'comments',
  			)),
  		));
  
  		$action_type = $this->getActionType();
  
  		$notification = new \stdClass();
  		$notification->summary = elgg_echo('interactions:response:email:subject', array(
  			$author_link,
  			$action_type,
  			$object_summary_link
  				), $this->language);
  		$notification->subject = strip_tags($notification->summary);
  		$notification->body = elgg_echo('interactions:response:email:body', array(
  			$author_link,
  			$action_type,
  			$object_full_title,
  			$this->getComment(),
  			$this->comment->getURL(),
  			$this->root->getURL(),
  			$this->author->getDisplayName(),
  			$this->author->getURL(),
  				), $this->language);
  
  		return $notification;
  	}
code: public function prepare() {
  
  		$object_type = $this->getObjectType();
  
  		$object_link = elgg_view('output/url', array(
  			'text' => $this->object->getDisplayName(),
  			'href' => elgg_http_add_url_query_elements($this->object->getURL(), array(
  				'active_tab' => 'comments',
  			)),
  		));
  
  		if ($this->author->guid == $this->object->owner_guid) {
  			$object_summary_title = elgg_echo('interactions:ownership:own', array($object_type), $this->language);
  		} else if ($this->recipient->guid == $this->object->owner_guid) {
  			$object_summary_title = elgg_echo('interactions:ownership:your', array($object_type), $this->language);
  		} else {
  			$object_owner = $this->object->getOwnerEntity() ? : elgg_get_site_entity();
  			$object_summary_title = elgg_echo('interactions:ownership:owner', array($object_owner->getDisplayName(), $object_type), $this->language);
  		}
  
  		if ($this->object instanceof Comment) {
  			$object_full_title = $object_summary_title;
  		} else {
  			$object_full_title = $object_summary_title . ' ' . $object_link;
  		}
  
  		if ($this->root->guid !== $this->object->guid) {
  			$root_link = elgg_view('output/url', array(
  				'text' => $this->root->getDisplayName(),
  				'href' => elgg_http_add_url_query_elements($this->root->getURL(), array(
  					'active_tab' => 'comments',
  				)),
  			));
  			$object_full_title .= ' ' . elgg_echo('interactions:comment:in_thread', array($root_link));
  		}
  
  		$author_link = elgg_view('output/url', array(
  			'text' => $this->author->name,
  			'href' => $this->author->getURL(),
  		));
  
  		$object_summary_link = elgg_view('output/url', array(
  			'text' => $object_summary_title,
  			'href' => elgg_http_add_url_query_elements($this->object->getURL(), array(
  				'active_tab' => 'comments',
  			)),
  		));
  
  		$action_type = $this->getActionType();
  
  		$notification = new \stdClass();
  		$notification->summary = elgg_echo('interactions:response:email:subject', array(
  			$author_link,
  			$action_type,
  			$object_summary_link
  				), $this->language);
  		$notification->subject = strip_tags($notification->summary);
  		$notification->body = elgg_echo('interactions:response:email:body', array(
  			$author_link,
  			$action_type,
  			$object_full_title,
  			$this->getComment(),
  			$this->comment->getURL(),
  			$this->root->getURL(),
  			$this->author->getDisplayName(),
  			$this->author->getURL(),
  				), $this->language);
  
  		return $notification;
  	}
code_tokens: public function prepare ( ) { $ object_type = $ this -> getObjectType ( ) ; $ object_link = elgg_view ( 'output/url' , array ( 'text' => $ this -> object -> getDisplayName ( ) , 'href' => elgg_http_add_url_query_elements ( $ this -> object -> getURL ( ) , array ( 'active_tab' => 'comments' , ) ) , ) ) ; if ( $ this -> author -> guid == $ this -> object -> owner_guid ) { $ object_summary_title = elgg_echo ( 'interactions:ownership:own' , array ( $ object_type ) , $ this -> language ) ; } else if ( $ this -> recipient -> guid == $ this -> object -> owner_guid ) { $ object_summary_title = elgg_echo ( 'interactions:ownership:your' , array ( $ object_type ) , $ this -> language ) ; } else { $ object_owner = $ this -> object -> getOwnerEntity ( ) ? : elgg_get_site_entity ( ) ; $ object_summary_title = elgg_echo ( 'interactions:ownership:owner' , array ( $ object_owner -> getDisplayName ( ) , $ object_type ) , $ this -> language ) ; } if ( $ this -> object instanceof Comment ) { $ object_full_title = $ object_summary_title ; } else { $ object_full_title = $ object_summary_title . ' ' . $ object_link ; } if ( $ this -> root -> guid !== $ this -> object -> guid ) { $ root_link = elgg_view ( 'output/url' , array ( 'text' => $ this -> root -> getDisplayName ( ) , 'href' => elgg_http_add_url_query_elements ( $ this -> root -> getURL ( ) , array ( 'active_tab' => 'comments' , ) ) , ) ) ; $ object_full_title .= ' ' . elgg_echo ( 'interactions:comment:in_thread' , array ( $ root_link ) ) ; } $ author_link = elgg_view ( 'output/url' , array ( 'text' => $ this -> author -> name , 'href' => $ this -> author -> getURL ( ) , ) ) ; $ object_summary_link = elgg_view ( 'output/url' , array ( 'text' => $ object_summary_title , 'href' => elgg_http_add_url_query_elements ( $ this -> object -> getURL ( ) , array ( 'active_tab' => 'comments' , ) ) , ) ) ; $ action_type = $ this -> getActionType ( ) ; $ notification = new \ stdClass ( ) ; $ notification -> summary = elgg_echo ( 'interactions:response:email:subject' , array ( $ author_link , $ action_type , $ object_summary_link ) , $ this -> language ) ; $ notification -> subject = strip_tags ( $ notification -> summary ) ; $ notification -> body = elgg_echo ( 'interactions:response:email:body' , array ( $ author_link , $ action_type , $ object_full_title , $ this -> getComment ( ) , $ this -> comment -> getURL ( ) , $ this -> root -> getURL ( ) , $ this -> author -> getDisplayName ( ) , $ this -> author -> getURL ( ) , ) , $ this -> language ) ; return $ notification ; }
docstring: Prepares notification elements
  @return \stdClass
docstring_tokens: Prepares notification elements