Esempio n. 1
0
 /**
  * Method to get the list of messages an email/note references
  *
  * @access  private
  * @param   string $msg_id The ID of the parent message
  * @param   string $type If this is a note or an email
  * @param   array $references The array the references will be stored in.
  */
 function _getReferences($msg_id, $type, &$references)
 {
     $references[] = $msg_id;
     if ($type == 'note') {
         $class = 'Note';
     } else {
         $class = 'Support';
     }
     $parent_msg_id = call_user_func(array($class, 'getParentMessageIDbyMessageID'), $msg_id);
     if (!empty($parent_msg_id)) {
         Mail_API::_getReferences($parent_msg_id, $type, $references);
     }
 }