name | type | default | params | representant | foreign | foreign_prop | position |
id | CO_INTEGER | SEQUENCE | READONLY=1;HIDDEN=1 | 0 | 0 | ||
version | CO_INTEGER | 0 | READONLY=1;HIDDEN=1 | 0 | 0 | ||
deleted | CO_INTEGER | 0 | READONLY=1;HIDDEN=1 | 0 | 0 | ||
inherits_acl | CO_INTEGER | 1 | HIDDEN=1;READONLY=1 | 0 | 50 | ||
file_version | CO_INTEGER | 0 | 0 | 100 |
method getFile
description: Sends file content to the client, including header with Content Type.
description: Does not return file: use getFileAsString in scripts and/or methods.
parameters:
par_area
type CO_STRING
par_class
type CO_STRING
par_id
type CO_INTEGER
method getFileAsString
description: Retrieves (0-ended) copy of the file content (as 0-ended string).
description: Does not generate actions nor JavaScript.
parameters:
par_area
type CO_STRING
par_class
type CO_STRING
par_id
type CO_INTEGER
method writeFileFromString
description: Writes content to the file, replaces previous content and increases files version.
parameters:
par_area
type CO_STRING
par_class
type CO_STRING
par_id
type CO_INTEGER
text
type CO_STRING
method getPath
description: Returns partial path to the file (path relative data root; file name included).
description: You will want to overwrite this method if you use non-standard layout.
parameters:
par_area
type CO_STRING
par_class
type CO_STRING
par_id
type CO_INTEGER
method getContentType
description: Returns string containing content type: Application/octet-stream.
description: You will want to overwrite this method.
parameters:
par_area
type CO_STRING
par_class
type CO_STRING
par_id
type CO_INTEGER