Ejemplo n.º 1
0
 /**
  * AJAX action: Return a list of address objects used to build an address
  * header for 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:
  *   - header: (integer) If set, return preview data. Otherwise, return
  *              full data.
  *
  * @return object  An object with the following entries:
  *   - hdr_data: (object) Contains header names as keys and lists of
  *               address objects as values.
  * @throws IMP_Exception
  */
 public function addressHeader()
 {
     $show_msg = new IMP_Ajax_Application_ShowMessage($this->_base->indices);
     $hdr = $this->vars->header;
     $result = new stdClass();
     $result->hdr_data->{$hdr} = (object) $show_msg->getAddressHeader($this->vars->header, null);
     return $result;
 }