getInlineOutput() публичный Метод

Get the inline display output for a message.
public getInlineOutput ( string $mimeid = null ) : array
$mimeid string Restrict output to this MIME ID (and children).
Результат array An array with the following keys: - atc_parts: (array) The list of attachment MIME IDs. - display_ids: (array) The list of display MIME IDs. - metadata: (array) A list of metadata. - msgtext: (string) The rendered HTML code. - one_part: (boolean) If true, the message only consists of one part.
Пример #1
0
 /**
  * AJAX action: Return the inline display text for a given MIME ID of
  * a message.
  *
  * See the list of variables needed for IMP_Ajax_Application#changed() and
  * IMP_Ajax_Application#checkUidvalidity(). Mailbox/indices form
  * parameters needed. Additional variables used:
  *   - mimeid: (string) The MIME ID to return.
  *
  * @return object  An object with the following entries:
  * <pre>
  *   - md: (array) Metadata information.
  *   - mimeid: (string) The base MIME ID of the text.
  *   - puids: (array) See IMP_Ajax_Application#previewUids().
  *   - text: (string) Inline Message text of the part.
  * </pre>
  */
 public function inlineMessageOutput()
 {
     $result = new stdClass();
     $show_msg = new IMP_Contents_Message($this->_base->indices);
     $msg_output = $show_msg->getInlineOutput($this->vars->mimeid);
     $result = new stdClass();
     $result->md = $msg_output['metadata'];
     $result->mimeid = $this->vars->mimeid;
     $result->puids = $this->_base->previewUids();
     $result->text = $msg_output['msgtext'];
     return $result;
 }