IPWorks Cloud 2020 PHP Edition

Questions / Feedback?

ResourceList Event

Fires once for each resource returned when listing resources, changes, or revisions.

Object Oriented Interface

public function fireResourceList($param);

Procedural Interface

ipworkscloud_dropbox_register_callback($res, 7, array($this, 'fireResourceList'));

Parameter List


'id'
'name'
'path'
'resourcetype'
'modifiedtime'
'size'
'accesstype'
'revision'
'hash'
'deleted'

Remarks

This event fires once for each resource returned when ListResources, GetResourceInfo, Search, ListChanges, or ListRevisions is called.

Id is the Id of the resource.

Name is the name of the resource.

Path is the path of the resource.

ResourceType reflects the resource's type. Possible values are:

0 (drtFile) A file.
1 (drtFolder) A folder.

ModifiedTime reflects the last modified time of the file resource, as reported by the server. Not applicable for folder resources. Timestamps are formatted according to ISO 8601 and are always in UTC time.

Size is the size of the file resource, in bytes. Not applicable for folder resources.

AccessType reflects the type of access the current user has to the resource. Possible values are:

0 (atUnrestricted) The user's access to the resource is not restricted.
1 (atReadOnly) The user has read-only access to the resource. This indicates that the resource is, or is located within, a read-only shared folder.
2 (atLimited) The user has limited access to the immediate contents of the folder resource (by virtue of having access to one or more other resources located somewhere within the folder). See further notes below. Only applicable to folders.
3 (atNoAccess) The user is allowed to see that the folder resource exists, but may not access its contents. Only applicable to folders.

An access type of 2 (atLimited) still allows the user to call ListResources for a folder, but the results will be limited to the subset of resources within that folder that the user can actually access (including any further limited-access subfolders).

Revision is the revision Id of the file resource. Note applicable for folder resources.

Hash holds a hash of the file resource's content. Not applicable for folder resources.

Deleted indicates whether the resource has been deleted.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 PHP Edition - Version 20.0 [Build 8265]