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
▲ Plugin API Functions
plugin_getdefaultconf
Syntax
plugin_getdefaultconf ()
Input parameters
Output
plugin_readmenu
Description
Reads Menupoints and menugroups from the xml data.
Be carefull with nesting, function getcontent is used and you can't nest groups inside of groups as a subpoint!
Input parameter $pluginFolder contains the directory of the plugin.
Returns an Array containing every group and menupoint with its configuration.
Syntax
plugin_readmenu ($xml, $pluginFolder)
Input parameters
- $xml ... plugin xml [string]
- $pluginFolder ... plugin directory [string]
global input parameters
Output
- menu point array used by navigator
plugin_parse
Description
Reads the plugin configurations from the file system.
Checks the folder defined in mgmt_config and searched for plugins and their configurations files.
It either takes needed values from the configuration, from the $oldData or defaultConfiguration.
Syntax
plugin_parse ($oldData=array())
Input parameters
- $oldData ... mgmt_plugin [array] (optional)
global input parameters
Output
plugin_generatedefinition
Description
Generates the Array definition used in php for $array with the name of $arrayName.
Run recursively through the array and supports boolean, numeric and string types for the key and value.
Syntax
plugin_generatedefinition ($arrayName, $array)
Input parameters
- $arrayName ... name of array holding the plugin definitions [string]
- $array ... configuration containing the values and keys [array]
global input parameters
Output
- plugin array / false on error
plugin_saveconfig
Description
Saves the plugin configuration $configuration into the configuration file.
The configuration file is located in the data/config directory and is named plugin.global.php.
Syntax
plugin_saveconfig ($configuration)
Input parameters
- $configuration ... configuration [array]
global input parameters
Output
plugin_generatelink
Description
Generates a link to be used when linking to other pages inside of a plugin
Syntax
plugin_generatelink ($plugin, $page, $control=false, $additionalGetParameters=false)
Input parameters
- $plugin ... plugin name [string]
- $page ... plugin page (relative reference to the plugins main page) [string]
- $control ... control (relative reference to the plugins control page) [string]
- $additionalGetParameters ... additional GET parameters [string]
global input parameters
Output