使用GroupWise API对消息进行排序



是否可以使用对象API对GroupWise消息进行排序?

我知道过滤器和查询,但是我找不到任何用于过滤器和查询表达式的排序运算符。

您必须使用我所能告诉的光标(除了加载所有内容)。

<?php
/* $this is a class that extends SoapClient using the groupwise.wsdl */
$q = (object)[
    'folderType' => 'Mailbox',
    'view' => 'count unreadCount'
];
$folder = $this->getFolderRequest($q);
$q = (object)[
    'container' => $folder->folder->id,
    'view' => 'subject peek noDownload'
];
$cursor = $this->createCursorRequest($q);
$q = (object)[
    'container' => $data->folder->id,
    'cursor' => $cursor->cursor,
    'position' => 'end',
    'count' => 20,
    'forward' => TRUE
];
$msgs = $this->readCursorRequest($q);
var_dump($msgs);
/* You could also throw readCursorRequest() in a loop and track offset + position for more intensive purposes */
?>

更多阅读:https://www.novell.com/documentation/developer/groupwise_sdk/gwsdk_gwwebservices/data/b7m3i3x.html

相关内容

  • 没有找到相关文章

最新更新