[midcom] element index

Package indexes

All elements
a c d e f g h i l m n o p r s t u v _
_
top
Variable $_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.
Variable $_basicnav
A reference to the NAP instance we belong to.
Variable $_basicnav
A reference to the basicnav instance in use.
Variable $_body
The parsed body.
Variable $_cache
Holds the values alread read from the database.
Variable $_cached_host_name
Host name cache to avoid computing it each time.
Variable $_cached_host_prefix
Host prefix cache to avoid computing it each time.
Variable $_client
midcom_application::$_client in application.php
The client status array.
Variable $_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.
Variable $_component_properties
This is a part of the component cache. It stores the properties of the already loaded components.
Variable $_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.
Variable $_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.
Variable $_context
Current context
Variable $_contextid
The context ID we're accociated with.
Variable $_curobject
Stores a copy of the last parsed object. Type is stored in $_curtype.
Variable $_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.
Variable $_currentcomponent
The active component.
Variable $_currentcontext
Contains the ID of the currently active context or FALSE is none is active.
Variable $_currentleaf
The GUID of the currently active leaf.
Variable $_current_prefix
Current logging prefix
Variable $_curtype
Stores the type of $_curobject, represented by one of the MIDCOM_HELPER_URLPARSER_... constants.
Variable $_curURL
This is the URL to the currently requested object in the form
Variable $_datamanager
Datamanager instance for the given object.
Variable $_enabled
Flag which is true if the debugger is enabled.
Variable $_filename
Logfile name
Variable $_global
Globally assigned configuration data.
Variable $_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.
Variable $_i18n
I18n service object reference, used for charset conversions.
Variable $_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.
Variable $_jshead
midcom_application::$_jshead in application.php
String with all JavaScript declarations for the page's head.
Variable $_jsonload
Array with all methods for the BODY's onload event.
Variable $_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.
Variable $_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:
Variable $_link_head
String with all link elements to be included in a page's head.
Variable $_loaded
This indexed array stores the MidCOM paths of all loaded components. Its elements are used as keys for the cache storage.
Variable $_loaded_leaves
This array holds a list of all topics for which the leaves have been loaded.
Variable $_loader
midcom_application::$_loader in application.php
The component loader.
Variable $_loader
This is a reference to the systemwide component loader class.
Variable $_local
Locally overriden configuration data.
Variable $_loglevel
Current loglevel
Variable $_mail
PEAR class in use.
Variable $_mail_mime
PEAR class in use.
Variable $_memberships
This array contains the GUIDs of all groups the user authenticated during the constructor was part of. It is used for check_memeberships.
Variable $_merged
Merged, current configuration state.
Variable $_meta_head
string with all metatags to go into the page head.
Variable $_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.
Variable $_nap_cache
A reference to the NAP cache store
Variable $_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.
Variable $_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:
Variable $_object_head
string with all object tags to go into a page's head.
Variable $_origArgc
The argc value that has been used to initialize the URL parser.
Variable $_origArgv
The argv value that has been used to initialize the URL parser.
Variable $_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.
Variable $_parameters
The parameters to use for the Mail template.
Variable $_parameters_encoding
The parameter character encoding hint, if unknown, this is null.
Variable $_parsed
Flag indicating if the template has already been parsed
Variable $_parser
midcom_application::$_parser in application.php
The URL parser.
Variable $_prefix
midcom_application::$_prefix in application.php
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.
Variable $_prefixes
Prefix stack
Variable $_root
The GUID of the MidCOM Root Content Topic
Variable $_roottopic
Stores the Topic from which the parsing has started.
Variable $_schemadb
The schema database to use for this instance.
Variable $_scope
Current style scope
Variable $_services
This is the interface to MidCOMs Object Services. Each service is indexed by its string-name (for example "i18n" for all i18n stuff).
Variable $_snippetdir
Default style path
Variable $_snippets
Default style element cache
Variable $_standard_midgard_sortparams
A list of standard Midgard sorting orders.
Variable $_status
midcom_application::$_status in application.php
Integer constant resembling the current MidCOM state.
Variable $_styles
Style element cache
Variable $_style_head
String with all css styles to go into a page's head.
Variable $_subject
The parsed subject.
Variable $_template
The Mail template, a mailtemplate datamanger type.
Variable $_topic
Current topic
Page _basicnav.php
_basicnav.php in _basicnav.php
Page _componentloader.php
_componentloader.php in _componentloader.php
Page _styleloader.php
_styleloader.php in _styleloader.php
Method _charset_convert
Internal helper doing character conversion for the parameters.
Method _checkobject
Check, wether a given component is able to handle the current request.
Method _check_index
Private helper function which checks an index for validity.
Method _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.
Method _check_local_array
Check local data array for validity
Method _check_toolbar_permissions
Checks for the toolbar permissions, uses the cache variables $_user and $_admin to cache the data against repeated calls.
Method _create_context
Create and prepare a new component context.
Method _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.
Method _format_array
Helper function to convert an array into a string representation
Method _format_dm
Helper function to convert a filled datamanager instance into a string representation.
Method _format_object
Helper function to convert an object into a string representation.
Method _getComponentSnippetdir
Gets the component snippetdir.
Method _getComponentStyle
Gets the component style.
Method _get_element_in_styletree
Returns a style element that matches $name and is in style $id.
Method _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.
Method _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.
Method _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.
Method _get_node_from_database
Reads a node data structure from the database, completes all defaults and derived properties (like ViewerGroups).
Method _get_style_id_from_path
Returns the id of the style described by $path.
Method _handle
Handle the request.
Method _init
Initialize the object, used by the factory function.
Method _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.
Method _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.
Method _loadconfig
Load the configuration for a given object.
Method _loadNode
This function is the controlling instance of the loading mechanism. It
Method _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).
Method _load_all_dir
This function is a helper of load_all. It iterates through the available
Method _load_leaves
Loads the leaves for a given node from the cache or database.
Method _output
Execute the output callback.
Method _populate_client
Populates the client status array that can be queried using the get_client() method.
Method _process
Process the request
Method _retrieve_value
Retrieves a given metadata key, postprocesses it where neccessary and stores it into the local cache.
Method _set_context_data
Update the component context
Method _set_current_context
Sets a new context, doing some minor sanity checking.
Method _showdebuglog
Shows the contents of the current debuglog. You have to enable this interface
Method _store_from_object
This function will fetch the configuration data stored in the parameter domain $path of the Midgard Object $object.
Method _update_cache
This method will merge the local and the global configuration arrays into the cache array.
Method _update_leaflist_urls
This helper updates the URLs in the reference-passed leaf list.
Method _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.
Method _validate_url
Will validate the given MidCOM Path $path for syntactical
Method _write_leaves_to_cache
Writes the leaves passed to this function to the cache, assigning them to the specified node.
a
top
Variable $argc
The currently remaining argument count.
Variable $argv
The currently remaining argument list.
Method add_item
This function will add an Item to the toolbar. Set before to the index of the element before which you want to insert the item or use -1 if you want to append an item. Alternativly, instead of specifying an index, you can specify an URL instead.
Method add_jscript
Register JavaScript Code for output directly in the page.
Method add_jsfile
Register JavaScript File for referring in the page.
Method add_jsonload
Register a JavaScript method for the body onload event
Method add_link_head
Register a linkelement to be placed in the pagehead.
Method add_meta_head
Register a metatag to be added to the head element.
Method add_object_head
Register some object tags to be added to the head element.
Method add_style_head
Register a styleblock / style link to be added to the head element.
Method approve
Approves the object.
Page application.php
application.php in application.php
Page articlesfirst.php
articlesfirst.php in articlesfirst.php
c
top
Variable $cache
midcom_application::$cache in application.php
The main caching Engine which is responsible for the current page output.
Variable $class_style
The CSS class-Style rule that should be used for the toolbar.
Method check_memberships
Check group memberships.
Method codeinit
Initialize the URL parser and process the request.
Method content
Display the output of the component
Page convert_legacy_metadata.php
convert_legacy_metadata.php in convert_legacy_metadata.php
Page configuration.php
configuration.php in configuration.php
d
top
Function debug_add
debug_add() in debug.php
Shortcut: Log a message
Function debug_dump_mem
debug_dump_mem() in debug.php
Shortcut: Dump the current memory usage and the delta to the last call of this function.
Function debug_pop
debug_pop() in debug.php
Shortcut: Restore the last debug prefix
Function debug_print_r
debug_print_r() in debug.php
Shortcut: Dump a variable (by reference)
Function debug_print_type
debug_print_type() in debug.php
Shortcut: Dump a variables type (by reference)
Function debug_push
debug_push() in debug.php
Shortcut: Set a new debug prefix
Function debug_push_class
debug_push_class() in debug.php
Shortcut for adding a class/method debug prefix, the class name is obtained from the first parameter, the prefix is appended using ::$prefix notation.
Method disable
Disable the Debugger
Method disable_item
Set's an item's enabled flag to false.
Function dump_mem
dump_mem() in misc.php
Method dynamic_load
Dynamically execute a subrequest and insert its output in place of the function call.
Page debug.php
debug.php in debug.php
e
top
Method edit_current_page_url
This function provides an interface to construct links like "Edit this page".
Method enable
Enable the Debugger
Method enable_item
Set's an item's enabled flag to true.
Method enter_context
Switches the context (see dymamic load). Private variables $_context, $_topic and $_snippetdir are adjusted.
Method exists
Checks for the existence of a configuration key.
f
top
Variable $failed
Number of E-Mails that failed sending.
Method fetch_article
Try to fetch an article.
Method fetch_attachment
Try to fetch an attachment.
Method fetch_object
Returns a copy of the currently active object that has been successfully parsed so far.
Method fetch_topic
Try to fetch a topic.
Method fetch_URL
Returns the URL to the currently selected object including the Midgard Page Prefix.
Method fetch_variable
Try to fetch an URL variable.
Method finish
midcom_application::finish() in application.php
Exit from the framework, execute after all output has been made.
g
top
Global $GLOBALS["midcom_debugger"]
Global debugger instance
Global $GLOBALS['midcom_config']
$GLOBALS['midcom_config'] in midcom_config.php
Current MidCOM configuration
Global $GLOBALS['midcom_config_default']
MidCOM core configuration option defaults.
Global $GLOBALS['midcom_config_local']
$GLOBALS['midcom_config_local'] in midcom_config.php
Local MidCOM configuration options, specific to this Instance.
Global $GLOBALS['midcom_config_site']
$GLOBALS['midcom_config_site'] in midcom_config.php
MidCOM site specific configuration, read from /etc/midgard/midcom.conf.
Method generate_error
Generate an error page.
Method 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).
Method get
Retrieve a configuration key
Method get_all
Retrieve a copy the complete configuration array.
Method 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.
Method get_breadcrumb_line
Construct a breadcrumb line.
Method 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.
Method 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.
Method get_component_class
Returns a reference to an instance of the specified component's
Method get_component_loader
Return the reference to the component loader.
Method get_component_property
Returns a property value for the component identified by the
Method get_contentadmin_class
Returns a reference to an instance of the specified component's
Method get_content_topic
Method get_context_data
Access the MidCOM component context
Method get_current_context
Returns the ID of the currently active context. This is FALSE if there is no context running.
Method 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.
Method 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.
Method 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.
Method 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.
Method get_custom_context_data
Retrieve arbitary, component-specific information in the component context
Method get_datamanager
Return a Datamanager instance for the current object.
Method get_host_name
Retrieves the name of the current host, fully qualified with protocol and port.
Method get_host_prefix
Return the prefix required to build relative links on the current site.
Method 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.
Method 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.
Method 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.
Method 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.
Method get_leaf_toolbar
Compute a toolbar out of the NAP information for a given leaf.
Method get_leaf_uplink
Returns the ID of the node to which $leaf_id is accociated to, false on failure.
Method get_leaf_uplink
Returns the ID of the node to which $leaf_id is accociated to, false on failure.
Method 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.
Method 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.
Method get_midgard
A mgd_get_midgard replacement
Method get_nap_class
Returns a reference to an instance of the specified component's
Method 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.
Method 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.
Method get_node_toolbar
Compute a toolbar out of the NAP information for a given node.
Method 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.
Method 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.
Method get_parameters
Returns the currently set parameters.
Method get_parameters_encoding
Retrieve the current parameter character encoding.
Method 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.
Method 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.
Method get_service
Return a reference to a given service.
Method get_sorted_list
Returns the sorted list for this topic according to our sorting criteria.
Method get_sorted_list
Method get_sorted_list
Method get_sorted_list
Method get_status
Get the current MidCOM processing state.
Method 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).
Method 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).
h
top
Method header
midcom_application::header() in application.php
Sends a header out to the client.
Function hide_unapproved_photos
hide_unapproved_photos() in convert_legacy_metadata.php
i
top
Variable $id_style
The CSS ID-Style rule that should be used for the toolbar.
Variable $items
The items in the toolbar. The array consists of Arrays outlined
Function ImageCopyResampleBicubic
Bicubic resampling of an Image, truecolor version
Function ImageCopyResampleBicubicPalette
Bicubic resampling of an Image, 256 color version
Function index_object
index_object() in index-legacy-attachments.php
Indexes a given object using the indexer passed to the function.
Method is_approved
Checks wether the article has been approved since its last editing.
Method is_enabled
Is the debugger enabled?
Method is_loaded
Returns TRUE if the component identified by the MidCOM path $url is already loaded and available for usage.
Method is_node_in_tree
Checks if the given node is within the tree of another node.
Method is_object_visible_onsite
This is a helper function which indicates wether a given object may be shown onsite taking approval, scheduling and visibility settings into account. The important point here is that it also checks the global configuration defaults, so that this is basically the same base on which NAP decides wether to show an item or not.
Method is_visible
Checks the object's visibility regarding scheduling and the hide flag.
Page index-legacy-attachments.php
index-legacy-attachments.php in index-legacy-attachments.php
Page itemlist.php
itemlist.php in itemlist.php
l
top
Method leave_context
Switches the context (see dymamic load). Private variables $_context, $_topic and $_snippetdir are adjusted.
Page list_helpers.php
list_helpers.php in list_helpers.php
Method list_child_elements
List all child elements, nodes and leaves alike, of the node with ID $parent_node_id. For every child element, an array of ID and type (node/leaf) is given as
Method list_leaves
Lists all leaves of $parent_node. If there are no leaves you will get an empty array, if there was an error (for instance an unknown parent node ID) you will get FALSE.
Method list_leaves
Lists all leaves of $parent_node. If there are no leaves you will get an empty array, if there was an error (for instance an unknown parent node ID) you will get FALSE.
Method list_loaded_components
Retrieve a list of all loaded components. The Array will contain an unsortet collection of MidCOM Paths.
Method list_nodes
Lists all Sub-nodes of $parent_node. If there are no subnodes you will get an empty array, if there was an error (for instance an unkown parent node ID) you will get FALSE.
Method list_nodes
Lists all Sub-nodes of $parent_node. If there are no subnodes you will get an empty array, if there was an error (for instance an unkown parent node ID) you will get FALSE.
Method load
This function will invoke _load directly. If the loading process is unsucessful, it will call generate_error.
Method load_all
This function tries to load all available components by traversing
Method load_datamanager
Loads the datamanager for this instance. This will patch the schema in case we are dealing with an article.
Method load_library
Load a code library
Method load_snippet
Method log
midcom_debug::log() in debug.php
Log a message
m
top
Variable $midgard
midcom_application::$midgard in application.php
Contains the output of get_midgard. You can directly access it here.
Page midcom_config.php
midcom_config.php in midcom_config.php
Page mailtemplate.php