WHFSFile (open)
WHFS file object
Syntax
LOADLIB "mod::system/lib/internal/whfs/objects.whlib";
OBJECTTYPE WHFSFileProperties
- PROPERTY contentmodificationdateLast content update date. Please note that WebHare versions before 5.6 never recorded this, and have usually set it to the firstpublishdate of the file 
- PROPERTY creationdateCreationdate 
- PROPERTY dataData of this file 
- PROPERTY descriptionDescription 
- PROPERTY externallinkURL this file links to (only for link-files) 
- PROPERTY filelinkId of file this file links to (only for link-files) 
- PROPERTY firstpublishdateFirst publication date. Please note that WebHare versions before 3.13 never recorded this, and have usually set it to the creationdate of the file 
- PROPERTY fullpathFull path within this site 
- PROPERTY highestparentId of the highest in-site parent (ie, parentsite->root) 
- PROPERTY highestparentobject
- PROPERTY idId of this object 
- PROPERTY isacceptableindexWhether files of this type can function as index 
- PROPERTY isactiveWhether this object is active (not in the trash) 
- PROPERTY isfolderWhether this is a folder 
- PROPERTY ispinnedWhether this object is pinned (locked for renaming/deleting) 
- PROPERTY keywordsKeywords 
- PROPERTY lastpublishdateLast publication date. 
- PROPERTY linkDirect link to this object, empty if not published 
- PROPERTY modificationdateModificationdate 
- PROPERTY modifiedbyModified by 
- PROPERTY nameName 
- PROPERTY needstemplateWhether this object needs a template 
- PROPERTY orderingOrdering number 
- PROPERTY parentId of parent object of this file/folder 
- PROPERTY parentobjectParent object 
- PROPERTY parentsiteId of the parent site 
- PROPERTY publishWhether this file is published 
- PROPERTY publishedCurrent publish status number 
- PROPERTY sizeSize of the data of this file 
- PROPERTY titleTitle 
- PROPERTY typeId of the type of this whfs object 
- PROPERTY typensNamespace of the type of this whfs object 
- PROPERTY whfspathFull path whfs path 
Functions
- OBJECT FUNCTION CopyTo(OBJECT destfolder, STRING newname)Create a copy of this file/folder in the destination folder, with optional rename. 
- MACRO DeleteSelf()Deletes this file or folder 
- RECORD FUNCTION FilterInstanceDataUpdates(STRING typenamespace, RECORD newdata)Filters instancedata updates, cells with the same value as currently on disk will be removed 
- STRING ARRAY FUNCTION GetEventMasks()Returns the event masks for broadcasts fired for this object 
- INTEGER ARRAY FUNCTION GetFullTree()Get the tree from the publisher root to this object 
- RECORD FUNCTION GetInstanceData(STRING typenamespace)Returns the instance data for a specific whfs type 
- RECORD FUNCTION GetInstanceDataByType(OBJECT type)
- STRING FUNCTION GetResourceName()Return the resource name for the current object 
- INTEGER ARRAY FUNCTION GetWHFSTree()Get the tree from the publisher root to this object 
- RECORD FUNCTION GetWrapped()Get this file as a wrapped blob record 
- BOOLEAN FUNCTION IsChildOf(INTEGER otherobj)Returns whether this object is a child of another object 
- BOOLEAN FUNCTION IsParentOf(INTEGER otherobj)Returns whether this object is a parent of another object 
- MACRO MoveTo(OBJECT destfolder, STRING newname)Moves this file/folder to the destination folder, with optional rename. 
- MACRO RecycleSelf()Move this file or folder to the trash 
- BOOLEAN FUNCTION Refresh()Refresh all metadata from the database 
- MACRO RestoreSelf()Restores this file or folder from the recycle bin to its original location 
- MACRO ScheduleRepublish()Schedule a republish 
- MACRO SetInstanceData(STRING typenamespace, RECORD newdata, RECORD options)Sets the instance data for a specific WHFS type 
- MACRO SetInstanceDataByType(OBJECT type, RECORD newdata, RECORD options)
- MACRO UpdateData(BLOB newdata)Update the data of this file 
- MACRO UpdateMetadata(RECORD newmetadata, RECORD options)Update the metadata for this whfs object. Throws on invalid data.