MidCOM Constants

From OpenPSA Wiki

Jump to: navigation, search

Constants for the MidCOM System. They are defined in fs-midcom/lib/constants.php

A list of known Constants (some might be out of date, some are not yet in the stable version):

Contents

[edit] 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

[edit] MidCOM 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.

[edit] Component Context Keys

They can be accessed form the MidCOM PHP Superglobal with the help of get_context_data, where a listing can be found.

[edit] 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

[edit] Client Status Array Keys

  • MIDCOM_CLIENT_MOZILLA
  • MIDCOM_CLIENT_IE
  • MIDCOM_CLIENT_OPERA
  • MIDCOM_CLIENT_NETSCAPE
  • MIDCOM_CLIENT_UNIX
  • MIDCOM_CLIENT_MAC
  • MIDCOM_CLIENT_WIN

[edit] MidCOM Request Types:

These constants are there to let you select the type of request made to the dynamic loader. You will most probably not need this, because it is primarily designed to let the AIS decide what to do. It might get more interesting, if you want to build your own Administration Interface.

  • MIDCOM_REQUEST_CONTENT: Shows the regular output of the component.
  • MIDCOM_REQUEST_CONTENTADM: Content Administration
  • MIDCOM_REQUEST_COMPONENTADM: Component Administration

[edit] MidCOM Core Status Codes

  • MIDCOM_STATUS_PREPARE
  • MIDCOM_STATUS_CANHANDLE
  • MIDCOM_STATUS_HANDLE
  • MIDCOM_STATUS_CONTENT
  • MIDCOM_STATUS_CLEANUP

[edit] 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

[edit] 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

[edit] 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

[edit] MidCOM Cron constants

  • MIDCOM_CRON_MINUTE
  • MIDCOM_CRON_HOUR
  • MIDCOM_CRON_DAY

[edit] Decprecated Constants

[edit] MidCOM Datamanager Constants:

These constants are used within Datamanager 1.

  • MIDCOM_DATAMGR_EDITING: System is in Edit Mode
  • MIDCOM_DATAMGR_SAVED: Editing complete, back to normal operation
  • MIDCOM_DATAMGR_FAILED: An Error occured and processing is incomplete
  • MIDCOM_DATAMGR_CANCELLED: Editing has been cancelled, back to normal operation
  • MIDCOM_DATAMGR_CANCELLED_NONECREATED: The datamanger was in creation mode, and has been canceled, no object has been created though.
  • MIDCOM_DATAMGR_CREATING: Like Editing, but no object has yet been created.
  • MIDCOM_DATAMGR_CREATEFAILED: The callback handler failed to create the object.
  • MIDCOM_DATAMGR_SAVE_DELAYED

[edit] External Links

http://midcomapi.contentcontrol-berlin.de/midcom/_midcom.core---constants.php.html
Personal tools