Umwandlungsfunktionen
<box 100% round blue|definiert in><code>
/webEdition/we/include/we_global.inc.php </code></box>
id_to_path
Liefert zur angegebenen Dokument-ID den dazugehörigen Dokument-Pfad zurück.
Syntax
<box 100% round blue><code php>
id_to_path( mixed $IDs [, string $table] [,object $db ,] [bool $asArray ,] [bool $endslash ,] [bool $isPublished])
</code></box>
Parameter-Liste
^Name ^ Beschreibung ^
| IDs | Dokument-ID(s). Der Wert kann vom Typ Integer oder Array sein. |
| table | Standardwert ist FILE_TABLE. |
| db | Datenbankverbindung. Standardwert ist "". |
| asArray | Standardwert ist false. |
| endslash | Standardwert ist false. |
| isPublished | nur veröffentlichte Dokumente/Objekte |
Rückgabewert
Gibt einen Dokument-Pfad als String zurück. Wird für den Parameter "asArray" der Wert "true" angegeben, dann wird ein Array zurückgegeben.
Beispiele
<box 100% round blue|Beispiel #1><code php>
<?php echo id_to_path(4); ?>
</code></box>
path_to_id
Liefert zum angegebenen Dokument-Pfad die dazugehörige Dokument-ID zurück.
Syntax
<box 100% round blue><code php>
path_to_id( string $path [, string $table] [, $DB])
</code></box>
Parameter-Liste
^Name ^ Beschreibung ^
| path | Dokumenten-Pfad. |
| table | Standardwert ist FILE_TABLE. |
Rückgabewerte
Gibt eine Dokument-ID als Integer zurück.
Beispiele
<box 100% round blue|Beispiel #1><code php><!-- Ausgabe der Dokument-ID des Dokument-Pfades "/css" -->
<?php echo path_to_id('/css'); ?>
</code></box>
makeArrayFromCSV (deprecated)
Syntax
<box 100% round blue><code php>
makeArrayFromCSV(string $csv)
</code></box>
Parameter-Liste
^Name ^ Beschreibung ^
| csv | Komma-separierte Liste an Werten |
getHTTP
<box 100% round blue|definiert in><code>
/webEdition/we/include/we_global.inc.php </code></box>
Syntax
<box 100% round blue><code php>
getHTTP(string $server, string $url [, int $port="", string $username="", string $password=""])
</code></box>
Parameter-Liste
^Name ^ Beschreibung ^
| server | Server |
| url | URL |
| port | Port, optional |
| username | Benutzername, optional |
| password | Passwort, optional |