'itemid' => new external_value(PARAM_INT, 'associated id'),
'filepath' => new external_value(PARAM_PATH, 'file path'),
'filename' => new external_value(PARAM_FILE, 'file name'),
- 'modified' => new external_value(PARAM_INT, 'timestamp, return files which the last ' .
- 'timemodified time is the same or later than the specified time', VALUE_DEFAULT, null)
+ 'modified' => new external_value(PARAM_INT, 'timestamp to return files changed after this time.', VALUE_DEFAULT, null)
)
);
}
* @param int $itemid item id
* @param string $filepath file path
* @param string $filename file name
- * @param int $modified, timestamp, timestamp,
- * return files which the last timemodified time is the same or later than the specified time
+ * @param int $modified timestamp to return files changed after this time.
* @return array
* @since Moodle 2.2
*/
$timemodified = $child->get_timemodified();
if ($child->is_directory()) {
- if ((is_null($modified)) or ($modified <= $timemodified)) {
+ if ((is_null($modified)) or ($modified < $timemodified)) {
$node = array(
'contextid' => $params['contextid'],
'component' => $params['component'],
$list[] = $node;
}
} else {
- if ((is_null($modified)) or ($modified <= $timemodified)) {
+ if ((is_null($modified)) or ($modified < $timemodified)) {
$node = array(
'contextid' => $params['contextid'],
'component' => $params['component'],