2

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

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

4

1 回答 1

0

您将不得不使用我所知道的光标(没有加载所有内容)。

<?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

于 2015-02-12T22:47:27.963 回答