API Dokumentation

API Dokumentation / Wiki

Die folgenden Seiten geben einen Überblick über die Funktionen des API (Programmierschnittstelle) des hyper Content & Digital Asset Management Servers.
Bitte beachten Sie, dass Sie in der Regel nur wenige Funktionen für die Entwicklung von Plugins oder speziellen Template-Funktionen, wie automatische Erstellung einer Navigation, Sitemap und so weiter, benötigen. Bitte studieren Sie den Template Designers Guide und Programers Guide für eine bessere Einsicht in die Handhabung dieser Funktionen.
Das API dient primär für die Umsetzung eigenständiger Anwendungen, die die Funktionen des hyper Content & Digital Asset Management Servers nutzen. Das API ist nicht mit dem OpenAPI zu verwechseln, welchen auf einer SOA (Service Oriented Architecture) basiert und nicht Bestandteil der Free Edition ist.

Fragen und Antworten bitte innerhalb der Google Group.

hyperCMS API Function Reference

  1. Main API Functions
  2. Get API Functions
  3. Set API Functions
  4. Connect API Functions
  5. Security API Functions
  6. Media API Functions
  7. Metadata API Functions
  8. Link API Functions
  9. Plugin API Functions
  10. User Interface API Functions
  11. Template Engine API Functions
  12. XML API Functions
  13. Report API Functions
  14. Project API Functions
  15. Task API Functions
  16. Workflow API Functions
  17. Cloud Storage API Functions
  18. Import/Export API Functions

Task API Functions

createtask


Description
Creates a new user task and send optional e-mail to user.
Since verion 5.8.4 the data will be stored in RDBMS instead of XML files.

Syntax
createtask ($site, $from_user="", $from_email="", $to_user="", $to_email="", $startdate="", $finishdate="", $category="", $object_id="", $taskname="", $message="", $sendmail=true, $priority="low", $planned="", $project_id=0, $dependency="")

Input parameters
  • $site ... publication name [string] (optional)
  • $from_user ... from_user name [string]
  • $from_email ... from_email [email-address] (optional)
  • $to_user ... to_user name [string]
  • $to_email ... to_email [email-address] (optional)
  • $startdate ... start date [yyyy-mm-dd] (optional)
  • $finishdate ... finish date [yyyy-mm-dd] (optional)
  • $category ... category [link, user, workflow] (optional)
  • $object_id ... object ID or object path [string]
  • $taskname ... task name [string]
  • $message ... message [string] (optional)
  • $sendmail ... sendmail [boolean]
  • $priority ... priority [high, medium, low] (optional)
  • $planned ... planned effort in taskunit [integer] (optional)
  • $project_id ... project/subproject ID if the task should be assigned to a project [integer] (optional)
  • $dependency ... task ID dependencies [comma separated task IDs] (optional)

global input parameters
  • $mgmt_config
  • $user
  • $hcms_lang_codepage
  • $hcms_lang
  • $lang

Output
  • result array


edittask


Description
Saves data of a user task and send optional e-mail to user.
Since verion 5.8.4 the data will be stored in RDBMS instead of XML files.
Use *Leave* as input if a value should not be changed.

Syntax
edittask ($task_id, $object_id="*Leave*", $to_user="*Leave*", $startdate="*Leave*", $finishdate="*Leave*", $taskname="*Leave*", $message="*Leave*", $sendmail=true, $priority="*Leave*", $status="*Leave*", $planned="*Leave*", $actual="*Leave*", $project_id="*Leave*", $dependency="*Leave*")

Input parameters
  • $task_id ... task ID [integer]
  • $object_id ... object ID or path to object [integer or string] (optional)
  • $to_user ... to_user name [string] (optional)
  • $startdate ... start date [yyyy-mm-dd] (optional)
  • $finishdate ... finish date [yyyy-mm-dd] (optional)
  • $taskname ... name of task [string] (optional)
  • $message ... task message/description [string] (optional)
  • $sendmail ... sendmail [true/false]
  • $priority ... priority [high, medium, low] (optional)
  • $status ... status in percent [0-100] (optional)
  • $planned ... planned effort in taskunit [float] (optional)
  • $actual ... actual effort in taskunit [float] (optional)
  • $project_id ... project/subproject ID the task belongs to [integer] (optional)
  • $dependency ... task ID dependencies [comma separated task IDs] (optional)

global input parameters
  • $mgmt_config
  • $user
  • $hcms_lang_codepage
  • $hcms_lang
  • $lang

Output
  • result array


deletetask


Description
Deletes a users task by its ID.

Syntax
deletetask ($task_id)

Input parameters
  • $task_id ... task ID or array of task IDs to be deleted [integer]

global input parameters
  • $mgmt_config
  • $user
  • $hcms_lang
  • $lang

Output
  • true/false


tasknotification


Description
Sends e-mail notifications to users if a task starts or ends on the given date.

Syntax
tasknotification ($date)

Input parameters
  • $date ... date [yyyy-mm-dd]

global input parameters
  • $mgmt_config
  • $hcms_lang_codepage
  • $hcms_lang
  • $lang

Output
  • true/false


Noch Fragen?
Diese Website verwendet Cookies, um Ihnen das bestmögliche Erlebnis auf unserer Website zu ermöglichen. Mehr info