Skip to content
flack edited this page Dec 8, 2016 · 3 revisions

Constants for the MidCOM System.

MidCOM Default Error Codes

  • MIDCOM_ERROK - HTTP 200, everything's fine
  • MIDCOM_ERRNOTFOUND - HTTP 404, the requested document does not exist
  • MIDCOM_ERRFORBIDDEN - HTTP 401, the access to this document has been forbidden
  • MIDCOM_ERRAUTH - HTTP 403, Unauthorized access, please authorize
  • MIDCOM_ERRCRIT - HTTP 500, Critical internal error

MidCOM NAP URL Information Constants

They are used to index the Property arrays returned by the NAP classes and within the midcom_helper__basicav code to deduce the status of the navigation elements. Please see MidCOM NAP Constants for details.

Component Context Keys

These hold Context Data

MidCOM Debugging System

There are five loglevel constants you can use when setting the loglevel or when logging messages:

  • MIDCOM_LOG_DEBUG
  • MIDCOM_LOG_INFO
  • MIDCOM_LOG_WARN
  • MIDCOM_LOG_ERROR
  • MIDCOM_LOG_CRIT

MidCOM Core Status Codes

  • MIDCOM_STATUS_PREPARE
  • MIDCOM_STATUS_CANHANDLE
  • MIDCOM_STATUS_HANDLE
  • MIDCOM_STATUS_CONTENT
  • MIDCOM_STATUS_CLEANUP

MidCOM Toolbar Array element constants

  • MIDCOM_TOOLBAR_URL
  • MIDCOM_TOOLBAR_LABEL
  • MIDCOM_TOOLBAR_HELPTEXT
  • MIDCOM_TOOLBAR_ICON
  • MIDCOM_TOOLBAR_ENABLED
  • MIDCOM_TOOLBAR__ORIGINAL_URL
  • MIDCOM_TOOLBAR_OPTIONS
  • MIDCOM_TOOLBAR_HIDDEN
  • MIDCOM_TOOLBAR_SUBMENU

MidCOM Privilege System

  • MIDCOM_PRIVILEGE_ALLOW
  • MIDCOM_PRIVILEGE_DENY
  • MIDCOM_PRIVILEGE_INHERIT
  • MIDCOM_PRIVILEGE_NAME
  • MIDCOM_PRIVILEGE_ASSIGNEE
  • MIDCOM_PRIVILEGE_VALUE
  • MIDCOM_PRIVILEGE_SCOPE_EVERYONE
  • MIDCOM_PRIVILEGE_SCOPE_ANONYMOUS
  • MIDCOM_PRIVILEGE_SCOPE_USERS
  • MIDCOM_PRIVILEGE_SCOPE_ROOTGROUP
  • MIDCOM_PRIVILEGE_SCOPE_VGROUPS
  • MIDCOM_PRIVILEGE_SCOPE_OWNER
  • MIDCOM_PRIVILEGE_SCOPE_USER

MidCOM Operation Bitfield constant

Used for the definition of watch operations in component manifests

  • MIDCOM_OPERATION_ALL
  • MIDCOM_OPERATION_DBA_CREATE
  • MIDCOM_OPERATION_DBA_UPDATE
  • MIDCOM_OPERATION_DBA_DELETE
  • MIDCOM_OPERATION_DBA_ALL

MidCOM Cron constants

  • MIDCOM_CRON_MINUTE
  • MIDCOM_CRON_HOUR
  • MIDCOM_CRON_DAY
Clone this wiki locally