pobject > pfile


(int) $data->filesize Size of the file in bytes.
(string) $data->mimetype Mimetype of the file, e.g. application/pdf.
(string) $nlsdata->summary Summary or description of the object


DownloadFile Similar to ShowFile, except it will send headers forcing the browser to show a save dialog.
(bool) ExistsFile Returns true if the file exists in the file list of the pfile object.
(string) GetFile Returns the contents of the file
(string) GetPlainText
Returns a string containing the contents of the file translated to plain text or an empty string.
(string) ParseFile Returns the specified string, with a number of placeholders replaced with current values, similar to ParsePage()
(bool) SaveFile Saves a physical file in the file list of the pfile object.
ShowFile Replaces a number of session dependant and location dependant variables with placeholders

The File (pfile) object allows you to store one or more files in Ariadne. In most cases you will just save one file per pfile object. But in some cases it can be usefull to store multiple files in one Ariadne object, e.g. when you are using images for menu items and want a seperate image for each language. You can just use the nls (natural language system) functionality of Ariadne and store a specific image for each defined language, in the same pfile object. Ariadne will automatically show you the correct image for the selected language.