UNB Components Code Reference

UnbMessageRevision::GetFileDataLength method

Gets the length of an attachment file in bytes.

public function UnbMessageRevision::GetFileDataLength ($searchMode = 0);

Parameters

searchMode  –  optional, default: 0

(int) Specifies how to read the data.
* 0: Find the data whereever it is, look in the database first.
* 1: Find the data whereever it is, look in the filesystem first.

Return value

(int) The size of the attached file in bytes, or 0 if there is no file attached.

Exceptions thrown

UnbDatabaseException No description available.
Exception 

If the attached data was not found although it's supposed to be there.

Member of class: UnbMessageRevision

Implementation file: messagerevision.class.php, line 1216

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.