eBD:JOIN

Value:1
Value:2
Value:3
Value:4
Value:5
Value:6
View code
eBD:JOIN
Joins all the values of the ARRAY (or the key-value pairs of the HASH), inserting the character CHAR between them, and stores the result in the variable VAR.Where the parameters ARRAY1 and ARRAY2 are used, it returns an array where all items from both arrays have been joined..
eBD:SET with QUERY

Field Value
idNoticias74
titularRicky Rubio al Madrid? Tachaaaan
idNoticias168
titularHalloddd
idNoticias75
titularRobinho se 'ofrece' al Barça
idNoticias169
titularPruebas
idNoticias158
titularMaradona no reservará a Messi a pesar de las tarjetas y la altura
idNoticias159
titularDolor sit amet
idNoticias166
titularPrueba
View code
eBD:SET
Assigns a value to a variable (if it is a global variable, GLOBAL is used; if it is temporary, TEMPORAL; and otherwise, VAR). The INDEX attribute indicates the position if the variable is complex (ARRAY or HASH). If the expression is a mathematical expression, EXPR should be used. If QUERY or ROW is used, a Query object (result of eBD:QUERY) or ROW object (result of FETCHROW) will be assigned to an ARRAY or HASH variable, respectively.
eBD:FOREACH with HASH

Index Value
edad18
id1
nombrepaco
View code
Foreach with HASH
Makes a loop with as many iterations as records returned by the execution of the query. The first instruction inside the loop is generally eBDFETCHROW. The START attribute indicates the number of the record the loop should start with. An ARRAY can be traversed using the ARRAY parameter instead of KEYS. HASH keys can likewise be traversed using KEYS and the name of the HASH. The ITERATOR attribute indicates the name of the variable that will be used to iterate all the items in the ARRAY. If the ITERATOR is not specified, the variable $iterator will be created automatically.
eBD:EXTRACT

View code
eBD:EXTRACT
Returns an array of TMPFILEs with all the files that were compressed in the original TMPFILE. The formats supported by the extract instruction are: zip, tgz, tar.gz, gz, tar, jar, par, tbz, tar.bz2, bz2, lzma. The optional "CHARSET" parameter allows you to define the charset in which the names of the files in the compressed file are encoded. The keys that can be used in the array are "name" and "path", where "name" will return the name of the file and "path" will return its path.
eBD:HTTPPOST

View page
View code
eBD:HTTPPOST
Sends a POST request to the HTTP server of a URL received as a parameter and leaves the content in a local, global or temporary variable. If no variable is specified, it generates the output in the HTML document. If you specify the parameters USERNAME and PASSWORD, they will be used to build the authentication headers. The REQUEST_HEADERS and RESPONSE_HEADERS variables allow you to use HASHES to send or receive the request headers, respectively. The arguments to be sent in the POST content are specified using as many eBD:PARAM instructions as parameters sought to be sent.
eBD:SERIALIZE & eBD:DESERIALIZE

[{"idNoticias":74,"titular":"Ricky Rubio al Madrid? Tachaaaan"},{"idNoticias":168,"titular":"Halloddd"},{"idNoticias":75,"titular":"Robinho se 'ofrece' al Barça"},{"idNoticias":169,"titular":"Pruebas"},{"idNoticias":158,"titular":"Maradona no reservará a Messi a pesar de las tarjetas y la altura"},{"idNoticias":159,"titular":"Dolor sit amet"},{"idNoticias":166,"titular":"Prueba"}]

Index Value
idNoticias74
titularRicky Rubio al Madrid? Tachaaaan
idNoticias168
titularHalloddd
idNoticias75
titularRobinho se 'ofrece' al Barça
idNoticias169
titularPruebas
idNoticias158
titularMaradona no reservará a Messi a pesar de las tarjetas y la altura
idNoticias159
titularDolor sit amet
idNoticias166
titularPrueba
View code
eBD:SERIALIZE
Serializes a complex data structure (made up of combinations of ARRAYS and HASHES) in a scalar value representing the structure that can be stored in a single variable. The supported formats are XML-RPC and JSON. The AUTOTYPE parameter indicates whether or not the XML-RPC tags should be generated automatically depending on the type of data in the values. The METHOD parameter indicates the type of XML that you wish to generate if using XML-RPC. The possible values are CALL, RESPONSE or FAULT. With CALL, the METHODNAME parameter is used to indicate the name of the method to be called.
eBD:DESERIALIZE
Recovers a serialized data structure in one of the formats supported by eBD:SERIALIZE: XML-RPC or JSON.
eBD:INDEXOF

Position Value
0hola
1adios
2arriba
3abajo

The position of value abajo is 3
View code
eBD:INDEXOF
Obtains the position of the value "value" within the array "varname". If the item is not found in the array, it returns "undef".
eBD:URIESCAPE & eBD:URIUNESCAPE

Hello!\nHow are you?
Hello!%5CnHow%20are%20you%3F
Hello!\nHow are you?
View code
eBD:URIESCAPE
Escapes the special characters found in the value to convert it into a valid URL according to RFC 2396 and stores it in the variable indicated by var, whether global or temporary. The UTF8 parameter indicates whether or not the original text should be interpreted as UTF8.
eBD:URIUNESCAPE Recovers the special characters that were escaped in "value" to obtain the original text and stores it in the variable indicated by var, whether global or temporary. The UTF8 parameter indicates whether or not the original text should be interpreted as UTF8.
eBD:ENCRYPT

carlos -> …‰$\ƒ.ºô“›‘<$¿\\ºaæ // f9225b674b310f20456955f7064fda96
carlos -> 0aE2VZVOaX6Vo
Correct password!
17ea8f72051bf4da -> carlos
View code
eBD:ENCRYPT
In verisons prior to 3.2, it was mainly used to encrypt links to eBD pages. Since that version, the use of the instruction eBD:ENCRYPT to encrypt URLs is NOT ADVISED. Instead, you should use eBD:LINKTO. eBD:ENCRYPT can also be used to encrypt values, using a symmetric key (KEY), or to create a data digest. The valid digests are: MD5, MD5_HEX, MD5_BASE64, SHA1, SHA1_HEX and SHA1_BASE64. If the variable exists, it stores the result in it; otherwise, it prints it. The KEY parameter is optional and specifies the seed to be used to encrypt the value; it should be at least 8 characters long. Where no value is given, it will use the same seed used to encrypt the session's URL. eBD:ENCRYPT can also be used to encrypt texts with the same encryption algorithm used to encode "Password" fields. To this end, the SALT parameter is used. Its value should be the seed (2-character string) with which you wish to encrypt the value. The encrypted result contains the seed itself at the beginning. Thus, to see whether a password is valid, the flat password should be encrypted using the encrypted version as the seed.
eBD:LINKTO with FRIENDLY_URL & SECURITY

FRIENDLY_URL (/pepe/) -> /pepe/_oS4EcnKPGR-4ywaA7ZiTLA
FRIENDLY_URL (pepe/)-> /Home-Novedades/lol/_oS4EcnKPGR-4ywaA7ZiTLA
SECURITY (USER)-> /Home-Novedades/_oS4EcnKPGR-4ywaA7ZiTLA
SECURITY (NONE)-> /Home-Novedades/_oS4EcnKPGR-4ywaA7ZiTLA
View code
eBD:LINKTO with FRIENDLY_URL & SECURITY
Encrypts eBD links. If you do not include the VAR | GLOBAL I TEMP parameter, it will add it to the html output buffer.
The FRIENDLY_URL parameter allows you to modify the text generated by the links, if the "Friendly URLs" option is enabled. If the value of this parameter begins with /, this string will only be used as a path in the URL. Otherwise, the string will be concatenated to the path automatically generated by eBD.
The SECURITY parameter allows you to define the security level for the generated URL. If none is specified, the level defined in the current zone will be used.
The following values are possible:
  • USER: The URL will be encrypted using the user's own key (recommended).
  • NONE: The anonymous user's key will be used, and the URL will thus be visible to any user.
eBD:XQUERY

View code
eBD:XQUERY
Runs an XQuery query against a linked table using the XML format. The parameter NAME will define the name with which the HANDLER will be stored in order to perform a FETCHROW to traverse the result of the expression as a record and field structure (hash array). The parameter VAR specifies a scale variable in which the XML content of the query response will be stored, so that the XML can be parsed manually with XMLPARSE. If the parameter STATIC is specified, eBD will not interpret variables or expressions within the XQuery. You can thus use special characters ($, %, etc.) without having to escape them.
eBD:DAVPATH

Url1 ->
Url2 -> /Carpeta2
View code
eBD:DAVPATH
Calculates the url for the folder identified by FOLDERID, according to the structure defined in the folder WebDAV (WEBDAV).
eBD:XSLTPROC

View code
eBD:XSLTPROC
Executes an XSLT transformation on a string or temporary file containing XML data. The variable indicated in INPUT may be a scale value or a file created with TMPFILE. The variable indicated in VAR will contain the result as a scale value or as a TMPFILE, where so specified with the OUTPUT parameter. The TYPE parameter allows you to force the execution of the process FOP in order to generate the PDF document from the result of the transformation.
eBD:WS

Index Value
View code
eBD:WS
Runs a Web service and stores the result in a variable. The service to be used can be indicated with the parameter SERVICE (which must contain the number of the service as configured in the "Shared Resources" menu or directly using the URL of the service definition file with the parameter WSDL)..