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
- Main API Functions
- Get API Functions
- Set API Functions
- Connect API Functions
- Security API Functions
- Media API Functions
- Metadata API Functions
- Link API Functions
- Plugin API Functions
- User Interface API Functions
- Template Engine API Functions
- XML API Functions
- Report API Functions
- Project API Functions
- Task API Functions
- Workflow API Functions
- Cloud Storage API Functions
- 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
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
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
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