-
$_adminmode
-
This one is true, if the system is in content administration mode and therefore working with a different topic. See Constructor Documentation for details.
-
$_basicnav
-
A reference to the NAP instance we belong to.
-
$_basicnav
-
A reference to the basicnav instance in use.
-
$_body
-
The parsed body.
-
$_cache
-
Holds the values alread read from the database.
-
$_cached_host_name
-
Host name cache to avoid computing it each time.
-
$_cached_host_prefix
-
Host prefix cache to avoid computing it each time.
-
$_client
-
The client status array.
-
$_component_classes
-
This is a part of the component cache. It stores references to the COMPONENT classes of the different loaded components, indexed by their MidCOM Path.
-
$_component_properties
-
This is a part of the component cache. It stores the properties of the already loaded components.
-
$_contentadmin_classes
-
This is a part of the component cache. It stores references to the Content Administration variant of the COMPONENT classes of the different loaded components, indexed by their MidCOM Path.
-
$_context
-
Holds the component context information. This is an array of arrays, the outer one indexed by context IDs, thie inner one indexed by context keys. Only valid of the system has left the code-init phase.
-
$_context
-
Current context
-
$_contextid
-
The context ID we're accociated with.
-
$_curobject
-
Stores a copy of the last parsed object. Type is stored in $_curtype.
-
$_current
-
The GUID of the currently active Navigation Node, determied by the active MidCOM Topic or one of its uplinks, if the subtree in question is invisible.
-
$_currentcomponent
-
The active component.
-
$_currentcontext
-
Contains the ID of the currently active context or FALSE is none is active.
-
$_currentleaf
-
The GUID of the currently active leaf.
-
$_current_prefix
-
Current logging prefix
-
$_curtype
-
Stores the type of $_curobject, represented by one of the MIDCOM_HELPER_URLPARSER_... constants.
-
$_curURL
-
This is the URL to the currently requested object in the form
-
$_datamanager
-
Datamanager instance for the given object.
-
$_enabled
-
Flag which is true if the debugger is enabled.
-
$_filename
-
Logfile name
-
$_global
-
Globally assigned configuration data.
-
$_guid_map
-
This map tracks all loaded GUIDs along with their NAP structures. This cache is used by nav's resolve_guid function to short-circut already known GUIDs.
-
$_i18n
-
I18n service object reference, used for charset conversions.
-
$_interface_classes
-
This is a part of the component cache. It stores references to the interface classes of the different loaded components, indexed by their MidCOM Path.
-
$_jshead
-
String with all JavaScript declarations for the page's head.
-
$_jsonload
-
Array with all methods for the BODY's onload event.
-
$_lastgoodnode
-
This is a temporary storage where _loadNode can return the last known good node in case the current node not visible. It is evaluated by the constructor.
-
$_leaves
-
This is the leaf cache. It is an array which contains elements indexed by their leaf ID. The data is again stored in an accociative array:
-
$_link_head
-
String with all link elements to be included in a page's head.
-
$_loaded
-
This indexed array stores the MidCOM paths of all loaded components. Its elements are used as keys for the cache storage.
-
$_loaded_leaves
-
This array holds a list of all topics for which the leaves have been loaded.
-
$_loader
-
The component loader.
-
$_loader
-
This is a reference to the systemwide component loader class.
-
$_local
-
Locally overriden configuration data.
-
$_loglevel
-
Current loglevel
-
$_mail
-
PEAR class in use.
-
$_mail_mime
-
PEAR class in use.
-
$_memberships
-
This array contains the GUIDs of all groups the user authenticated during the constructor was part of. It is used for check_memeberships.
-
$_merged
-
Merged, current configuration state.
-
$_meta_head
-
string with all metatags to go into the page head.
-
$_midcom_classes
-
This is a part of the component cache. It stores references to the MIDCOM classes of the different loaded component, indexed by their MidCOM Path.
-
$_nap_cache
-
A reference to the NAP cache store
-
$_nap_classes
-
This is a part of the component cache. It stores references to the NAP classes of the different loaded component, indexed by their MidCOM Path.
-
$_nodes
-
This is the node cache. It is an array which contains elements indexed by their node ID. The data is again stored in an accociative array:
-
$_object_head
-
string with all object tags to go into a page's head.
-
$_origArgc
-
The argc value that has been used to initialize the URL parser.
-
$_origArgv
-
The argv value that has been used to initialize the URL parser.
-
$_output_classes
-
This is a part of the component cache. It stores references to the OUTPUT classes of the different loaded component, indexed by their MidCOM Path.
-
$_parameters
-
The parameters to use for the Mail template.
-
$_parameters_encoding
-
The parameter character encoding hint, if unknown, this is null.
-
$_parsed
-
Flag indicating if the template has already been parsed
-
$_parser
-
The URL parser.
-
$_prefix
-
The prefix, which is appended to get_midgard()->self (i.e. the Midgard Page URL). This may be needed when MidCOM is run by wrapper.
-
$_prefixes
-
Prefix stack
-
$_root
-
The GUID of the MidCOM Root Content Topic
-
$_roottopic
-
Stores the Topic from which the parsing has started.
-
$_schemadb
-
The schema database to use for this instance.
-
$_scope
-
Current style scope
-
$_services
-
This is the interface to MidCOMs Object Services. Each service is indexed by its string-name (for example "i18n" for all i18n stuff).
-
$_snippetdir
-
Default style path
-
$_snippets
-
Default style element cache
-
$_standard_midgard_sortparams
-
A list of standard Midgard sorting orders.
-
$_status
-
Integer constant resembling the current MidCOM state.
-
$_styles
-
Style element cache
-
$_style_head
-
String with all css styles to go into a page's head.
-
$_subject
-
The parsed subject.
-
$_template
-
The Mail template, a mailtemplate datamanger type.
-
$_topic
-
Current topic
-
_basicnav.php
-
-
_componentloader.php
-
-
_styleloader.php
-
-
_charset_convert
-
Internal helper doing character conversion for the parameters.
-
_checkobject
-
Check, wether a given component is able to handle the current request.
-
_check_index
-
Private helper function which checks an index for validity.
-
_check_leaf_id
-
Verifies the existence of a given leaf. Call this before getting a leaf from the $_leaves cache. It will load all neccessary nodes/leaves as neccessary.
-
_check_local_array
-
Check local data array for validity
-
_check_toolbar_permissions
-
Checks for the toolbar permissions, uses the cache variables $_user and $_admin to cache the data against repeated calls.
-
_create_context
-
Create and prepare a new component context.
-
_exec_file
-
This is a heleper to execute any given Script in the current MidCOM context. All files have to be in $component_dir/exec directly, otherwise the script will not execute.
-
_format_array
-
Helper function to convert an array into a string representation
-
_format_dm
-
Helper function to convert a filled datamanager instance into a string representation.
-
_format_object
-
Helper function to convert an object into a string representation.
-
_getComponentSnippetdir
-
Gets the component snippetdir.
-
_getComponentStyle
-
Gets the component style.
-
_get_element_in_styletree
-
Returns a style element that matches $name and is in style $id.
-
_get_leaves
-
Return the list of leaves for a given node. This helper will construct complete leaf data structures for each leaf found. It will first check the cache for the leaf structures, and query the database only if the corresponding objects have not been found there.
-
_get_leaves_from_database
-
This helper is responsible for loading the leaves for a given node out of the database. It will complete all default fields to provide full blown nap structures.
-
_get_node
-
This helper object will construct a complete node data structure for a given topic, without any dependant objects like subtopics or leaves. It does not do any visibility checks, it just prepares the object for later processing.
-
_get_node_from_database
-
Reads a node data structure from the database, completes all defaults and derived properties (like ViewerGroups).
-
_get_style_id_from_path
-
Returns the id of the style described by $path.
-
_handle
-
Handle the request.
-
_init
-
Initialize the object, used by the factory function.
-
_is_object_visible
-
Checks, if the NAP object indicated by $napdata is visible within the current runtime environment. It will work with both nodes and leaves.
-
_load
-
This function will load the component specified by the MidCOM path $path. If the component could not be loaded successfully due to integrity errors (missing SnippetDirs, Classes, etc.), it will return false and populate $midcom_errstr accordingly.
-
_loadconfig
-
Load the configuration for a given object.
-
_loadNode
-
This function is the controlling instance of the loading mechanism. It
-
_loadNodeData
-
Load the Navigational information accociated with the topic $param, which can be passed as an ID or as a MidgardTopic object. This is differentiated by the flag $idmode (true for id, false for MidgardTopic).
-
_load_all_dir
-
This function is a helper of load_all. It iterates through the available
-
_load_leaves
-
Loads the leaves for a given node from the cache or database.
-
_output
-
Execute the output callback.
-
_populate_client
-
Populates the client status array that can be queried using the get_client() method.
-
_process
-
Process the request
-
_retrieve_value
-
Retrieves a given metadata key, postprocesses it where neccessary and stores it into the local cache.
-
_set_context_data
-
Update the component context
-
_set_current_context
-
Sets a new context, doing some minor sanity checking.
-
_showdebuglog
-
Shows the contents of the current debuglog. You have to enable this interface
-
_store_from_object
-
This function will fetch the configuration data stored in the parameter domain $path of the Midgard Object $object.
-
_update_cache
-
This method will merge the local and the global configuration arrays into the cache array.
-
_update_leaflist_urls
-
This helper updates the URLs in the reference-passed leaf list.
-
_validate_path
-
_validate_path is used to validate the component located at the snippetdir Path $snippetpath. This is a fully qualified snippetdir path to the component in question.
-
_validate_url
-
Will validate the given MidCOM Path $path for syntactical
-
_write_leaves_to_cache
-
Writes the leaves passed to this function to the cache, assigning them to the specified node.
-
$GLOBALS["midcom_debugger"]
-
Global debugger instance
-
$GLOBALS['midcom_config']
-
Current MidCOM configuration
-
$GLOBALS['midcom_config_default']
-
MidCOM core configuration option defaults.
-
$GLOBALS['midcom_config_local']
-
Local MidCOM configuration options, specific to this Instance.
-
$GLOBALS['midcom_config_site']
-
MidCOM site specific configuration, read from /etc/midgard/midcom.conf.
-
generate_error
-
Generate an error page.
-
get
-
This function will return a single metadata key from the object. Its return type depends on the metadata key that is requested (see the class introduction).
-
get
-
Retrieve a configuration key
-
get_all
-
Retrieve a copy the complete configuration array.
-
get_basic_nav
-
If the system is in the output phase (see above), the systemwide low-level NAP interface can be accessed through this function. A reference is returned.
-
get_breadcrumb_line
-
Construct a breadcrumb line.
-
get_client
-
Returns the Client Status Array which gives you all available information about the client accessing us.Currently incorprated is a recognition of client OS and client browser.
-
get_combined_toolbar
-
Compute a toolbar out of the NAP information for a given leaf and its node. Merges both toolbars into one. Always based on a leaf.
-
get_component_class
-
Returns a reference to an instance of the specified component's
-
get_component_loader
-
Return the reference to the component loader.
-
get_component_property
-
Returns a property value for the component identified by the
-
get_contentadmin_class
-
Returns a reference to an instance of the specified component's
-
get_content_topic
-
-
get_context_data
-
Access the MidCOM component context
-
get_current_context
-
Returns the ID of the currently active context. This is FALSE if there is no context running.
-
get_current_leaf
-
Retrieve the ID of the currently displayed leaf. This is a leaf that is displayed by the handling topic. If no leaf is active, this function returns FALSE. (Remeber to make a type sensitve check, e.g.
-
get_current_leaf
-
Retrieve the ID of the currently displayed leaf. This is a leaf that is displayed by the handling topic. If no leaf is active, this function returns FALSE. (Remeber to make a type sensitve check, e.g.
-
get_current_node
-
Retrieve the ID of the currently displayed node. Defined by the topic of the component that declared able to handle the request.
-
get_current_node
-
Retrieve the ID of the currently displayed node. Defined by the topic of the component that declared able to handle the request.
-
get_custom_context_data
-
Retrieve arbitary, component-specific information in the component context
-
get_datamanager
-
Return a Datamanager instance for the current object.
-
get_host_name
-
Retrieves the name of the current host, fully qualified with protocol and port.
-
get_host_prefix
-
Return the prefix required to build relative links on the current site.
-
get_index_from_url
-
This function will traverse all available items and return the first element whose URL matches the value passed to the function.
-
get_interface_class
-
Returns a reference to an instance of the specified component's interface class. The component is given in $path as a MidCOM path.
-
get_leaf
-
This will give you a key-value pair describeing the leaf with the ID $node_id. The defined keys are described above in leaf data interchange format. You will get false if the leaf ID is invalid.
-
get_leaf
-
This will give you a key-value pair describeing the leaf with the ID $node_id. The defined keys are described above in leaf data interchange format. You will get false if the leaf ID is invalid.
-
get_leaf_toolbar
-
Compute a toolbar out of the NAP information for a given leaf.
-
get_leaf_uplink
-
Returns the ID of the node to which $leaf_id is accociated to, false on failure.
-
get_leaf_uplink
-
Returns the ID of the node to which $leaf_id is accociated to, false on failure.
-
get_loaded_object_by_guid
-
This is a helper function used by midcom_helper_nav::resolve_guid(). It checks if the object denoted by the passed GUID is already loaded into memory and returns it, if available. This should speed up GUID lookup heavy code.
-
get_midcom_class
-
Returns a reference to an instance of the specified component's MIDCOM class. The component is given in $path as a MidCOM path.
-
get_midgard
-
A mgd_get_midgard replacement
-
get_nap_class
-
Returns a reference to an instance of the specified component's
-
get_node
-
This will give you a key-value pair describeing the node with the ID $node_id. The defined keys are described above in Node data interchange format. You will get false if the node ID is invalid.
-
get_node
-
This will give you a key-value pair describeing the node with the ID $node_id. The defined keys are described above in Node data interchange format. You will get false if the node ID is invalid.
-
get_node_toolbar
-
Compute a toolbar out of the NAP information for a given node.
-
get_node_uplink
-
Returns the ID of the node to which $node_id is accociated to, false on failure. The root node's uplink is -1.
-
get_node_uplink
-
Returns the ID of the node to which $node_id is accociated to, false on failure. The root node's uplink is -1.
-
get_parameters
-
Returns the currently set parameters.
-
get_parameters_encoding
-
Retrieve the current parameter character encoding.
-
get_root_node
-
Retrieve the ID of the root node. Note that this ID is dependent from the ID of the MidCOM Root topic and therefore will change as easily as the root topic ID might. The MIDCOM_NAV_URL entry of the root node's data will always be empty.
-
get_root_node
-
Retrieve the ID of the root node. Note that this ID is dependent from the ID of the MidCOM Root topic and therefore will change as easily as the root topic ID might. The MIDCOM_NAV_URL entry of the root node's data will always be empty.
-
get_service
-
Return a reference to a given service.
-
get_sorted_list
-
Returns the sorted list for this topic according to our sorting criteria.
-
get_sorted_list
-
-
get_sorted_list
-
-
get_sorted_list
-
-
get_status
-
Get the current MidCOM processing state.
-
get_toolbar_definition
-
This function returns the toolbar definition for the NAP object passed. This must superseed all calls to $nap_object[MIDCOM_NAV_TOOLBAR] as this information is not usable directly - it would result from the MidCOM cache and thus be out of date always (and especially not adapted to the current user).
-
get_toolbar_definition
-
This function returns the toolbar definition for the NAP object passed. This must superseed all calls to $nap_object[MIDCOM_NAV_TOOLBAR] as this information is not usable directly - it would result from the MidCOM cache and thus be out of date always (and especially not adapted to the current user).