Fetches the inbound message with the given identifier.

The returned message is either
{@link Clx\Xms\Api\MoTextSms textual} or
{@link Clx\Xms\Api\MoBinarySms binary}.

@param string $inboundId message identifier

@return Api\MoSms the fetched message
15627
public function fetchInbound($inboundId)
    {
        $eiid = rawurlencode($inboundId);

        if (empty($eiid)) {
            throw new \InvalidArgumentException("Empty inbound ID given");
        }

        $result = $this->_get($this->_url("/inbounds/$eiid"));
        return Deserialize::moSms($result);
    }
918234
public function getMessage($id)
    {
        // TODO that's ugly, would be better to let the message class decide
        if (strtolower($this->_messageClass) == 'zend_mail_message_file' || is_subclass_of($this->_messageClass, 'zend_mail_message_file')) {
            return new $this->_messageClass(array('file'  => $this->_getFileData($id, 'filename'),
                                                  'flags' => $this->_getFileData($id, 'flags')));
        }

        return new $this->_messageClass(array('handler' => $this, 'id' => $id, 'headers' => $this->getRawHeader($id),
                                              'flags'   => $this->_getFileData($id, 'flags')));
    }
922944
public function setMessageId($messageId)
    {
        if (is_integer($messageId) || is_float($messageId)) {
            $this->messageId = $messageId;
        } else {
            throw new InvalidArgumentException();
        }
    }
876674
public function fetchPermanentImage ($mediaID, $into = null)
    {
        return new Downloaded\Image($mediaID, $this->doPermanentFetchToStream($mediaID, $into));
    }
810178
public function getMessage($messageId, $entityId = null, $originalSignature = null)
    {
        return $this->diadocApi->getMessage($this->boxId, $messageId, $entityId, $originalSignature);
    }
216746
public static function gettext($msgid)
    {
        if (! class_exists('\PhpMyAdmin\MoTranslator\Loader', true)) {
            return $msgid;
        }

        self::load();

        return self::$translator->gettext($msgid);
    }
1015307
public function getReason($contactId)
    {
        $contactcdNode = $this->getContactcd($contactId);
        $node = $this->getFirst('contact:reason', $contactcdNode);

        return $node === null ? null : $node->nodeValue;
    }
614648
function getFont($fontId) {
    $this->parse();

    if (!isset($this->collectionOffsets[$fontId])) {
      throw new OutOfBoundsException();
    }

    if (isset($this->collection[$fontId])) {
      return $this->collection[$fontId];
    }

    $font    = new File();
    $font->f = $this->f;
    $font->setTableOffset($this->collectionOffsets[$fontId]);

    return $this->collection[$fontId] = $font;
  }
48427
public function getByModelRootId($rootId){

        $this->fillScopes();

        if(!isset($this->scopeByModelRootId[$rootId])){
            throw new OutOfBoundsException("No scope with modelRootId '$rootId' found");
        }

        return $this->scopeByModelRootId[$rootId];

    }
767331
public function contentfulEntryName(string $entryId): string
    {
        try {
            $contentfulEntry = $this->contentful->loadContentfulEntry($entryId);
        } catch (Throwable $t) {
            return '';
        }

        return $contentfulEntry->getName();
    }
756004
public SIMPReceivedMessageControllable getReceivedMessageByID(String id)
  {
    SIMPReceivedMessageControllable returnMessage=null;
    SIMPIterator iterator = getReceivedMessageIterator(SIMPConstants.SIMPCONTROL_RETURN_ALL_MESSAGES);
    while(iterator.hasNext())
    {
      SIMPReceivedMessageControllable receivedMessage = (SIMPReceivedMessageControllable)iterator.next();
      String msgID = receivedMessage.getId();
      if(msgID.equals(id))
      {
        returnMessage = receivedMessage;
        break;
      }
    }
    return returnMessage;
  }
515889
public function getUserMsg($openid, $lang = 'zh_CN')
    {
        $queryStr = [
            'openid' => $openid,
            'lang'   => $lang,
        ];

        $res = $this->_get('info', $queryStr);

        return $res;
    }
669977
public function getMessageInformation($id = '')
    {
        $message = [];
        if (is_array($this->messages) == true) {
            foreach($this ->messages as $msg) {
                if ($msg['index'] == $id) {
                    return $msg;
                }
            }
        }
        return $message;
    }
712023
public function get(Uuid $uuid)
    {
        if (!isset($this->map[$uuid->toString()])) {
            throw new OutOfBoundsException(sprintf(
                'The binding with UUID "%s" does not exist.',
                $uuid->toString()
            ));
        }

        return $this->map[$uuid->toString()];
    }
974973
public function getContext($callSid) {
        return new MemberContext(
            $this->version,
            $this->solution['accountSid'],
            $this->solution['queueSid'],
            $callSid
        );
    }
704120
public function get(int $conversationId, int $attachmentId): Attachment
    {
        $conversationResource = $this->restClient->getResource(
            Attachment::class,
            sprintf('/v2/conversations/%d/attachments/%d/data', $conversationId, $attachmentId)
        );

        return $conversationResource->getEntity();
    }
524309
protected function getContent($contentId)
    {
        $content = null;
        if (!is_null($contentId)) {
            $language = $this->currentSiteManager->getSiteLanguage();
            $content = $this->contentRepository->findPublishedVersion($contentId, $language);
        }

        if (is_null($content) && $this->requestStack->getMasterRequest()->get('token')) {
            $content = new FakeContent();
        }

        return $content;
    }