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
▲ 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