
162
CONTENT MANAGEMENT OBJECTS
roAssetCollection
This object is used to represent a collection of assets.
Object Creation: The roAssetCollection object is created with no parameters.
CreateObject("roAssetCollection")
You can populate an asset collection with individual calls to AddAsset() or AddAssets(). You can also populate an
asset collection using the roSyncSpec.GetAssets method, as shown below:
assetCollection = CreateObject("roAssetCollection")
localCurrentSync = CreateObject("roSyncSpec")
if localCurrentSync.ReadFromFile("local-sync.xml") then
assetCollection = localCurrentSync.GetAssets("download")
endif
Interfaces: ifAssetCollection, ifInternalAssetCollection
The ifAssetCollection interface provides the following: stuff
• GetFailureReason() As String
• AddAsset(asset_info As Object) As Boolean: Adds a single asset from an associative array.
Komentarze do niniejszej Instrukcji