Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

General insertion interface for datatypes

Make it easier to inserts files, text and complex xml into any datatype trough a common interface. This will reduce code involved and remove a lot of the internal variable handling to the given datatype. It will also…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/features/3.5/datatype_insert.txt

*Title: General insertion interface for datatypes

Incentive:
Make it easier to inserts files, text and complex xml into any datatype trough a common interface.
This will reduce code involved and remove a lot of the internal variable handling to the given
datatype. It will also simplify future updates of Exponential.


*Documentation:
Some new methods are introduced to the eZDatatype interface, there are one method
for querying for a special insert type and one for doing the actual insertions.

isxxxInsertionSupported(): Returns true if supported or false if not, default for all datatypes is false
insertxxx(): Tries to insert the type, returns true on success, false on failure or null if not supported.


Insertion types:
HTTP file: This is a file that is uploaded by the user using the web interface

methods:
 - isHTTPFileInsertionSupported(): Returns true if the datatype supports this
 - insertHTTPFile(): Inserts the specified HTTP file

datatypes:
 - ezimage: Stores as image
 - ezbinaryfile: Stores as binaryfile
 - ezmedia: Stores as media file


Insertion types:
Regular file: This is a file that exists on the system

methods:
 - isRegularFileInsertionSupported(): Returns true if the datatype supports this
 - insertRegularFile(): Inserts the specified file

datatypes:
none yet

Insertion types:
Simple string: A simple string on one or multiple lines.

methods:
 - isSimpleStringInsertionSupported(): Returns true if the datatype supports this
 - insertSimpleString(): Inserts the string

datatypes:
 - ezstring: Stored as data_text
 - eztext: Stored as data_text

*Testing:

*SVN Revisions:
7425

Something wrong on this page? Report an error

Documentation license

This page was inherited from the documentation of the original software. It is not covered by the GNU Free Documentation License; it is distributed under the GNU General Public License, version 2.

Copyright (C) 1999 - 2014 eZ Systems AS and contributors