The following pages provide an overview about all functions of the API (Application Programming Interface) of the hyper Content & Digital Asset Management Server.
Please note, that you might usually only require few functions for the development of Plugins, template functions like navigation, sitemap and so on. Please read the Template Designers Guide and Programers Guide for a better insight.
The API is primarily used for the implementation of standalone applications that leverage the capabilities of the hyper Content & Digital Asset Management Server. The API is not to be confused with the OpenAPI, which is based on a SOA (Service Oriented Architecture), and is not part of the Free Edition.
For Questions & Answers please visit the 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