1

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

我该怎么做?

4

1 回答 1

1

试试这个:

$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);
于 2016-11-15T05:33:28.940 回答