学习使用时间戳作为过滤器的储物柜查询语句

learning locker queryStatement using timestamp as a filter

我正在尝试使用 TinCanPHP 查询存储在 Learning Locker 中的语句,但我只想检索在特定时间间隔内生成的语句。比如我要今天生成的所有报表。

我该怎么做?

试试这个:

$LRSResponse = $LRS->queryStatements(['since' => '2016-11-15', 'ascending' => false]); // change to 'true', or omit, for ascending dates
$StatementsResult = $LRSResponse->content;
$array_of_Statement_objects = $StatementsResult->getStatements();
foreach ($array_of_Statement_objects as $extracted_Statement_object){
// deal with statements as necessary
}
unset($extracted_Statement_object);