Kurse

Kursangebote mit Anmeldung über getCoursForm(). Funktionen: getCoursList, getCoursContent, getCoursImages, getCoursVideos, getCoursMedia.

Liste

getCoursList($config, $mediaCheck)

Gibt alle Kurse zurück. Optional nach Instructor, Kategorie und Zeitraum filtern.

$config = [];
$config["status"] = '1';
$config["website"] = '1';
$config["instructor"] = ''; // optional: Instructor-ID
$config["period"] = 'future'; // 'future', 'past', leer = alle
$config["categorie"] = ''; // optional: Kategorie-ID
$config["limit"] = '10';
$config["start"] = '0';
$config["orderby"] = 'date';
$config["direction"] = 'asc';
$config["search"] = '';

$kurse = getCoursList($config, "false");

foreach ($kurse as $kurs) {
    echo $kurs["headline"]; // Kurstitel
    echo $kurs["start"]; // Startdatum (Unix-Timestamp)
    echo $kurs["end"]; // Enddatum
    echo $kurs["price"]; // Preis
    echo $kurs["image"]["image"]; // Hauptbild
}
KeyBeschreibungBeispiel
status1 = aktiv, 0 = inaktiv'1'
websiteWebsite-ID'1'
instructorFilter nach Instructor-ID'1033'
periodfuture = zukünftig · past = vergangen · leer = alle'future'
categorieFilter nach Kategorie-ID'5'
limit / startPagination'10' / '0'
orderby / directionSortierung: id, date, headline'date' / 'asc'
searchFreitextsuche''
KeyBeschreibung
id / key / tags / headline / content / descriptionBasisdaten
themeThema / Kursbereich
start / endStart- und Enddatum (Unix-Timestamp)
pricePreis
ageAltersangabe
highlight'1' wenn aktives Highlight, sonst nicht gesetzt
status / updateStatus und letztes Update
instructor[].id / .firstname / .lastname / .emailZugeordnete Instruktoren
location.id / .key / .name / .city / .countryLokal (aus Lokale-Modul, falls verknüpft)
location.name / .city / .countryLokal (Freitext, wenn kein Lokale-Eintrag)
links[].referenz / .url / .target / .buttonVerknüpfte Links
downloads[].id / .button / .referenz / .file / .typDownloads
image_items / video_items / videofile_items / media_itemsAnzahl Medien
graphic.image / .thumbnail / .smallWerbegrafik / Flyer (Shortcut)
advertising.graphic.image / .thumbnail / .smallWerbegrafik (alternative Struktur)
advertising.video.video / .width / .heightWerbevideo
image[].image / .thumbnail / .smallBilder-Galerie
video[].embed / .urlVideo-Streams
videofile[].video / .width / .heightHochgeladene Videodateien
[
    {
        "id": "43",
        "key": "20280125-2300-Test-Jetz-43",
        "tags": "",
        "headline": "Test Jetz",
        "content": "

afd adfasdf adf <\/p>", "theme": "", "description": "", "start": "1832454000", "end": "1832540400", "price": "0.00", "age": "0", "instructor": [ { "id": "", "firstname": "", "lastname": "", "email": "" } ], "location": { "name": "", "city": "", "country": "" }, "label": [ "0" ], "website": [ "1" ], "status": "1", "update": "0", "image_items": 0, "video_items": 0, "videofile_items": 0, "media_items": 0, "image": [], "video": [], "videofile": [] } ]

Playground