📄️ Acerca de las funciones clase
En este apartado se describen las funciones integradas en la clase 4D, así como los comandos constructores asociados. Las funciones y propiedades de clase 4D están disponibles a través de los objetos de instancia de clase.
📄️ Blob
La clase Blob permite crear y manipular objetos blob (4D.Blob).
📄️ Class
Cuando una clase usuario es definida en el proyecto, se carga en el entorno del lenguaje 4D. Una clase es un objeto en sí mismo, de la clase "Class", que tiene propiedades y una función.
📄️ Collection
La clase Collection gestiona variables de tipo Collection.
📄️ CryptoKey
The CryptoKey class in the 4D language encapsulates an asymmetric encryption key pair.
📄️ DataClass
A DataClass provides an object interface to a database table. All dataclasses in a 4D application are available as a property of the ds datastore.
📄️ DataStore
A Datastore is the interface object provided by ORDA to reference and access a database. Datastore objects are returned by the following commands:
Creating, sending or receiving emails in 4D is done by handling an Email object.
📄️ Entity
An entity is an instance of a Dataclass, like a record of the table matching the dataclass in its associated datastore. Contiene los mismos atributos que la clase de datos, así como los valores de los datos y las propiedades y funciones específicas.
📄️ EntitySelection
An entity selection is an object containing one or more reference(s) to entities belonging to the same Dataclass. Una entity selection puede contener 0, 1 o X entidades de la dataclass -- donde X puede representar el número total de entidades contenidas en la dataclass.
📄️ File
File objects are created with the File command. Contienen referencias a archivos de disco que pueden o no existir realmente en el disco. For example, when you execute the File command to create a new file, a valid File object is created but nothing is actually stored on disk until you call the file.create( ) function.
📄️ FileHandle
The FileHandle class has functions that allow you to sequentially read from or append contents to an opened File object. Un manejador de archivo puede acceder a cualquier parte de un documento.
📄️ Folder
Folder objects are created with the Folder command. Contienen referencias a carpetas que pueden o no existir realmente en el disco. For example, when you execute the Folder command to create a new folder, a valid Folder object is created but nothing is actually stored on disk until you call the folder.create() function.
📄️ Function
A 4D.Function object contains a piece of code that can be executed from an object, either using the () operator, or using the apply() and call() functions. 4D proposes three kinds of Function objects:
📄️ HTTPRequest
The HTTPRequest class allows you to handle HTTPRequest objects that can be used to configure and send requests to an HTTP server, as well as to process the HTTP server responses.
📄️ IMAPTransporter
The IMAPTransporter class allows you to retrieve messages from a IMAP email server.
📄️ MailAttachment
Attachment objects allow referencing files within a Email object. Attachment objects are created using the MAIL New attachment command.
📄️ POP3Transporter
The POP3Transporter class allows you to retrieve messages from a POP3 email server.
📄️ Session
Session objects are returned by the Session command. These objects provide the developer with an interface allowing to manage the current user session and execute actions such as store contextual data, share information between session processes, launch session-related preemptive processes, or (web only) manage privileges.
📄️ Signal
Las señales son herramientas que ofrece el lenguaje 4D para gestionar las interacciones y evitar conflictos entre procesos en una aplicación multiproceso. Las señales le permiten asegurarse de que uno o más procesos esperarán a que se complete una tarea específica antes de continuar la ejecución. Todo proceso puede esperar y/o liberar una señal.
📄️ SMTPTransporter
The SMTPTransporter class allows you to configure SMTP connections and send emails through SMTP transporter objects.
📄️ SystemWorker
System workers allow the 4D code to call any external process (a shell command, PHP, etc.) on the same machine. Los trabajadores del sistema se llaman de forma asíncrona. Mediante el uso de retrollamadas, 4D hace posible la comunicación en ambos sentidos.
📄️ WebForm
The WebForm class contains functions and properties allowing to handle your Qodly webform components. This class is detailed in the Qodly documentation.
📄️ WebFormItem
4D.WebFormItem objects are properties of the 4D.WebForm object returned by the Web Form command.
📄️ WebServer
The WebServer class API allows you to start and monitor a web server for the main (host) application as well as each hosted component (see the Web Server object overview). This class is available from the 4D class store.
📄️ WebSocket
The WebSocket class allows you to open a WebSocket client connection with a server, send and receive data, and close the connection.
📄️ WebSocketConnection
The WebSocketConnection class API allows you to handle WebSocket connections, once established using the WebSocketServer class.
📄️ WebSocketServer
La clase WebSocketServer permite crear y configurar un servidor WebSocket en 4D. Una vez que el servidor WebSocket 4D está activo, puede abrir y utilizar las conexiones WebSocket entre 4D y los clientes utilizando la clase WebSocketConnection.
📄️ ZIPArchive
A 4D ZIP archive is a File or Folder object containing one or more files or folders, which are compressed to be smaller than their original size. Estos archivos se crean con una extensión ".zip" y pueden utilizarse para ahorrar espacio en el disco o transferir archivos a través de medios que pueden tener limitaciones de tamaño (por ejemplo, el correo electrónico o la red).
📄️ ZIPFile
The following properties and functions from the File class are available to ZIPFile objects:
📄️ ZIPFolder
The following properties and functions from the Folder class are available to ZIPFolder objects: