[midcom.services] element index

Package indexes

All elements
a b c d e f g h i l m n o p q r s t u w x _
_
top
Variable $_allowed_types
List of allowed message types
Variable $_attachment
Variable $_auth_backend
A reference to the authentication backend we should use by default.
Variable $_auth_frontend
A reference to the authentication frontend we should use by default.
Variable $_auto_serialize
Set this to true if you plan to store PHP data structures rather then strings, the interface will automatically serialize/unserialize the data you store/retrieve from the database.
Variable $_backend
The backend indexer implementation
Variable $_backend
The configuration to use to start up the backend drivers. Initialized during startup from the MidCOM configuration key cache_module_nap_backend.
Variable $_backends
A list of all backends created by _create_backend(). They will be automatically shut down when the module shuts down. They are indexed by their name.
Variable $_backend_config
The configuration to use to start up the backend drivers. Initialized during startup from the MidCOM configuration key cache_module_nap_backend.
Variable $_cache
The cache backend instance to use.
Variable $_cache
The Memcache interface object.
Variable $_cache_dir
The base directory in which we may add script files.
Variable $_cache_dir
The base directory in which we may add files and directories within our namespace.
Variable $_centralized_mode
Whether we're in centralized mode, i.e. centralized toolbar has been shown
Variable $_charset
Current character set
Variable $_class_definition
Temporary variable during class cosntruction, stores the class definition that is currently processed.
Variable $_class_definition_filename
The filename of the class definition currently being read.
Variable $_class_string
Temporary variable during class construction, stores the constructed code.
Variable $_component_sudo
This flag indicates if sudo mode is active during execution. This will only be the case if the sudo system actually grants this privileges, and only until components release the rights again. This does override the full access control system at this time and essentially give you full admin privileges (though this might change in the future).
Variable $_config
Current configuration.
Variable $_config
Configuration key array. This is populated during initialize().
Variable $_content_type
The MIME content-type of the current request. It defaults to text/html, but must be set correctly, so that the client gets the correct type delivered upon cache deliveries.
Variable $_cookie_data
Stores the acciociative array stored in the cookie "midcom_services_i18n" which contains the keys "language" and "charset" or null if the cookie was not set.
Variable $_cookie_id
The auto-generated cookie ID for which this login session is valid. This consists of a static string with the host GUID concatenated to it.
Variable $_current_charset
Current character set
Variable $_current_content_language
Current language for content. May be different than the UI language
Variable $_current_data
Current Data collected by the CDATA handler, will be processed by the end-element handlers.
Variable $_current_document
The current document, before being added to the resultset.
Variable $_current_document_id
The RI of the document currently being parsed.
Variable $_current_field
The name of the current field, which is collected in _current_data at this time.
Variable $_current_id
The current request ID.
Variable $_current_language
Current language.
Variable $_cvs_revision
Internal version number, this is added to the generated classes for informational purposes only (right now).
Variable $_datamanager
The datamanager instance of the document we need to index.
Variable $_datamanager
The datamanager instance of the document we need to index.
Variable $_data_cache
An cache backend used to store the actual cached pages.
Variable $_data_groups
List of known data groups. See the class introduction for details.
Variable $_default_magic_class_privileges
This listing contains all magic privileges assigned to the existing classes. It is a multi-level array, example entry:
Variable $_default_privileges
Internal listing of all default privileges currently registered in the system. This is a privilege name/value map.
Variable $_dirname
The full directory filename.
Variable $_disabled
Flag for disabled indexing, set by the constructor.
Variable $_domain
The domain we're working in.
Variable $_enable_centralized
midcom.services.toolbars has two modes, it can either display one centralized toolbar for authenticated users, or the node and view toolbars separately for others. This property controls whether centralized mode is enabled.
Variable $_end
End timestamp, may be 0
Variable $_expires
Page expiration in seconds. If NULL (unset), the page does not expire.
Variable $_fallback_language
Fallback language, in case the selected language is not available.
Variable $_fallback_language
Fallback language, in case the selected language is not available.
Variable $_field
The name of the field that should be restricted.
Variable $_fields
An acciociative array containing all fields of the current document.
Variable $_filename
The full database filename.
Variable $_group_cache
Internal cache of all loaded groups, indexed by their identifiers.
Variable $_guid_backend_map
This array maps GUIDs to backend instances. This is required as AIS sites use the backend instance related to the live site. See _check_for_topic() for details.
Variable $_handle
The current handle, controlled by _open() and _close().
Variable $_handler
The handler to use
Variable $_host
The IP to connect to.
Variable $_http_charset
Preferred charsets extracted out of the HTTP content negotiation. Array keys are the charsets, the value is their q-index.
Variable $_http_lang
Preferred languages extracted out of the HTTP content negotiation. Array keys are the languages, the value is their q-index.
Variable $_i18n
A reference to the i18n service, used for charset conversion.
Variable $_index_name
The index name to use
Variable $_internal_sudo
This is an internal flag used to override all regular permission checks with a sort-of
Variable $_jobs
The list of jobs to run. See the class introduction for a more precise definition of these keys.
Variable $_language
Current language.
Variable $_language_db
The language database, loaded from /lib/midcom/services/_i18n_language-db.dat
Variable $_language_db
A copy of the language DB from i18n.
Variable $_last_modified
The time of the last modification, set during auto-header-completion.
Variable $_latest_message_id
ID of the latest UI message added so we can auto-increment
Variable $_library
The name of the locale library we use, this is usually a component's name.
Variable $_library_filename
The full path basename to the active library files. The individual files are ending with .$lang.txt.
Variable $_live_mode
This flag is true if the live mode has been activiated. This prevents the cache processing at the end of the request.
Variable $_loaded_classes
List of all classes which have been loaded. This list only contains the class definitions that have been used to construct the actual helper classes.
Variable $_loaded_sessions
A list of loaded login sessions, indexed by their session identifier.
Variable $_localedb
The language database, loaded from /lib/midcom/services/_i18n_language-db.dat
Variable $_messages_from_session
List of messages retrieved from session to avoid storing them again
Variable $_message_stack
The current message stack
Variable $_metadata
The metadata currently available. This array is indexed by context id; each value consists of an flat array of two metadata objects, the first object being the Node metadata, the second View metadata. The metadata objects are created on-demand.
Variable $_metadata
The metadata instance attached to the object to be indexed.
Variable $_meta_cache
This is true, if the pages produced by the cache should not be
Variable $_mgdschema_class_handler
A mapping storing which component handles which class. This is used to ensure that all MidCOM DBA main classes are loaded when casting MgdSchema objects to DBA objects.
Variable $_midcom_jobs
Jobs specific to the MidCOM core not covered by any component. (Services use this facility for example.)
Variable $_modules
List of all loaded modules, indexed by their class name.
Variable $_multilang
True, if the cache should honor the language settings.
Variable $_name
The backend instance name. This variable my not be written to after the instance has been created.
Variable $_no_cache
Flag, indicating wether the current page may be cached. If false, the usual no-cache headers will be generated.
Variable $_obj_l10n
Cache of all instantinated localization classes. They are delivered by reference to all clients.
Variable $_obrunning
Internal flag indicating wether the output buffering is active.
Variable $_open_for_reading
True, if the database has been opened for reading previously. This is also true, if we are in read-write mode, naturally.
Variable $_open_for_writing
True, if the database has been opened for writing previously.
Variable $_owner_default_privileges
Internal listing of all default owner privileges currently registered in the system.
Variable $_page_classes
Class of the current page per each context.
Variable $_port
The Port to connect to.
Variable $_privileges_cache
Internal cache of the effective privileges of users on content objects, this is an accociative array using a combination of the user identifier and the objects' guid as index. The privileges for the anonymous user use the magic EVERYONE as user identifier.
Variable $_recurrence
The recurrence rule to use, one of the MIDCOM_CRON_* constants.
Variable $_request
The request to execute.
Variable $_request
The current request content. This does not include the XML header and the enclosing request tag. This will be added upon retrieval of this string.
Variable $_request
The request to execute.
Variable $_response
The response received.
Variable $_response
The response received.
Variable $_schema
The schema in use. This is referenced into the datamanager2 instance.
Variable $_schema
The schema in use.
Variable $_sent_headers
An array storing all HTTP headers registered through register_sent_header().
Variable $_sessioning
Sessioning singelton.
Variable $_source
Variable $_start
Start timestamp, may be 0
Variable $_stringdb
The string database, a reference into the global cache.
Variable $_tmp_object_class_loaded
Internal status variable, set to true if the temporary object class has already been loaded.
Variable $_toolbars
The toolbars currently available. This array is indexed by context id; each value consists of an flat array of two toolbars, the first object being the Node toolbar, the second View toolbar. The toolbars are created on-demand.
Variable $_uncached
Set this to true, if you want to inhibit storage of the generated pages in the cache database. All other headers will be created as usual though, so 304 processing will kick in for example.
Variable $_unload_queue
List of all modules in the order they need to be unloaded. This is a FILO queue, the module loaded first is unloaded last.
Variable $_user_cache
Internal cache of all loaded users, indexed by their identifiers.
Variable $_version
The current L10n DB file format number (corresponds to the MidCOM versions).
Variable $_vgroups
Internal listing of all known virtual groups, populated from the MidCOM Virtual Groups registry. It indexes virtual group identifiers suitable for get_group with their clear-text names.
Page _i18n_l10n.php
_i18n_l10n.php in _i18n_l10n.php
Page _sessioning.php
_sessioning.php in _sessioning.php
Method _add_as_date_field
This function tries to convert the field $name into a date representation. Unixdate fields are used directly (localtime is used, not GMT), other fields will be parsed with strtodate.
Method _add_as_date_field
This function tries to convert the field $name into a date representation. Unixdate fields are used directly (localtime is used, not GMT), other fields will be parsed with strtodate.
Method _add_field
Internal helper which actually stores a field.
Method _can_do_internal_sudo
This internal helper checks if a privilege is available during internal sudo mode, as outlined in the corresponding variable.
Method _check_cache_dir
This helper will ensure that the cache base directory is created and usable by checking it is actually a directory. If it does not exist, it will be created automatically. Errors will be handled by calling generate_error.
Method _check_for_active_login_session
Internal startup helper, checks the currently running authentication backend for a running login session.
Method _check_for_language
Checks, wether the referenced language is already loaded. If not, it is automatically made available. Any errors will trigger generate_error.
Method _check_for_new_login_session
Internal startup helper, checks if the current authentication fronted has new credencials ready. If yes, it processes the login accordingly.
Method _check_for_topic
Internal helper, which ensures that the cache databases for root topic guid passed to the function are loaded.
Method _check_hit
This function holds the cache hit check meachnism. It seraches the requested URL in the cache database. If found, it checks, wether the cache page has expired. If not, the cached page is delivered to the client and processing ends. In all other cases this method simply returns.
Method _check_not_modified
Checks, wether the browser supplied if-modified-since or if-none-match headers match the passed etag/last modified timestamp. If yes, a 304 not modified header is emitted and true is returned. Otherwise the function will return false without modifications to the current runtime state.
Method _clean_content_control_chars
Removes all control characters except LF from the content, as this might throw the indexer off-track (valid XML and the like).
Method _close
Close the database that has been opened previosly with _open().
Method _close
Method _close
This method is unused as we use persistant connections, letting memcached take care about synchronization.
Method _complete_fields
Completes all fields which are not yet complete:
Method _complete_sent_headers
This little helper ensures that the headers Accept-Ranges, Content-Length and Last-Modified are present. The lastmod timestamp is taken out of the component context information if it is populated correctly there; if not, the system time is used instead.
Method _create_backend
Creates an instance of the handler described by the configuration passed to the function. The backend instance returned should be assigned by reference, to avoid handle duplication or the like.
Method _create_class_definition_filename
Little helper which converts a component / filename combination into a fully qualified path/filename. The filename is assigned to the $_class_definition_filename member variable of this class.
Method _create_metadata
Creates the node and view metadata for a given context ID.
Method _create_toolbars
Creates the node and view toolbars for a given context ID.
Method _delete_cookie
Deletes the cookie according to the session configuration as outlined in the class introduction.
Method _determine_recurrence
Determine the recurrence rule:
Method _do_midgard_auth
Internal helper, which does the actual Midgard authentication.
Method _encode_argument
Encodes an argument masking both single and double quotes.
Method _encode_cdata
Encodes a string using CDATA encoding.
Method _exec
This private helper will create a socket connection to the indexer daemon and execute the query.
Method _exec
This private helper will launch the Indexer interface and run the request in the $xml parameter, which must be a request writer object.
Method _execute_job
Executes the given job.
Method _exists
Checks, wether the given key exists in the Database.
Method _exists
Exists maps to the getter function, as memcached does not support exists checks.
Method _exists
Method _finish_caching
This helper will be called during module shutdown, it completes the output caching, post-processes it and updates the cache databases accordingly.
Method _format_filesize
Wrapper for number_format(number, 0, "", "."), used in the cache_stats call.
Method _generate_class
Generates a complete class out of the definition passed to the method.
Method _get
Get the data accociated with the given key.
Method _get
Method _get
Method _get_attachment_content
Returns the first four megabytes of the File referenced by $handle.
Method _get_helper
This is a small, internal helper function, which will load, unserialize and return a given key's value. It is shared by get and remove.
Method _get_text_representation
Returns a textual representation of the corresponding field.
Method _index_cast_to_document
Automatic helper which transforms a reference-passed object into an indexable document.
Method _initialize_centralized_toolbar
Initialize centralized toolbar if required
Method _initialize_user_from_midgard
Internal startup helper, synchronizes the authenticated user with the Midgard Authentication for startup. This will be overridden by MidCOM Auth, but is there for compatibility reasons.
Method _load_all_languages
This tries to load the language files for all languages defined in the i18n's language database.
Method _load_class_magic_privileges
This helper function loads and prepares the list of class magic privileges for usage. It will assign them to the $_*_default_class_privileges members.
Method _load_jobs
This helepr function loads and validates all registered jobs. After this call, all required handler classes will be available.
Method _load_l10n_db
Load the specified l10n library. If loading the library failed, generate_error is called, otherwise the l10n db cache is populated accordingly.
Method _load_language
Load a language database
Method _load_language_db
Loads the language database.
Method _load_tmp_object_class
Internal helper function, ensures that the temporary object class is loaded.
Method _obfuscate_password
This function obfuscates a password in some way so that accidential
Method _on_execute
Method _on_initialize
Initialization event handler.
Method _on_initialize
Startup handler, called during service start up at the start of the request.
Method _on_initialize
Initializes the cache module, verifying the existance of the script cache directory.
Method _on_initialize
This function is responsible for initializing the cache.
Method _on_initialize
Method _on_initialize
This handler completes the configuration.
Method _on_initialize
This handler completes the configuration.
Method _on_initialize
Backend initialization
Method _on_initialize
This handler completes the configuration.
Method _on_initialize
Initialization event handler.
Method _on_login_session_created
This event handler is called immediately after the successful creation of a new login session. The authentication driver has to ensure that the login identifier stays available during subsequent requests.
Method _on_login_session_created
Method _on_login_session_deleted
This event handler is called immediately after the successful deletion of a login session. Use this to drop any session identifier store you might have created during _on_login_session_created.
Method _on_shutdown
Backend shutdown
Method _on_shutdown
Shutdown hanlder, called during midcom_application::finish(). Note, that for example the page cache will not use this cleanup handler, as it produces a complete html page based on a previous request.
Method _on_shutdown
The shutdown event handler will finish the caching sequence by storing the cached data, if required.
Method _open
This method is unused as we use persistant connections, letting memcached take care about synchronization.
Method _open
Open the database for usage. If $write is set to true, it must be opened in read/write access, otherwise read-only access is sufficient.
Method _open
Internal helper, which opens a handle to the DBA file in either read-only or read/write mode. The handle has to be closed by the _close() function.
Method _prepare_authentication_drivers
Internal startup helper, loads all configured authentication drivers.
Method _process_attachment
Method _process_auto_field
This helper will process the given field using the guidelines given in the class documentation.
Method _process_auto_field
This helper will process the given field using the guidelines given in the class documentation.
Method _process_class_definition_list
Process an entire array of class definitions, collect the generated listings and return a complete PHP file string for all classes in the list.
Method _process_datamanager
Processes the information contained in the datamanager instance.
Method _process_datamanager
Processes the information contained in the datamanager instance.
Method _process_metadata
Processes the information contained in the metadata instance.
Method _process_mime_binary
Any binary file will have its name in the abstract unless no title is defined, in which case the documents title already contains the file's name.
Method _process_mime_html
Processes HTML-style attachments (should therefore work with XML too), strips tags and resolves entities.
Method _process_mime_pdf
Convert a PDF attachment to plain text and index it.
Method _process_mime_plaintext
Simple plain-text driver, just copies the attachment.
Method _process_mime_richtext
Convert an RTF attachment to plain text and index it.
Method _process_mime_word
Convert a Word attachment to plain text and index it.
Method _process_nap
If neccessary, process the available NAP information to fill in the title field.
Method _process_topic
Tries to determine the topic GUID and component using NAPs reverse-lookup capabilities.
Method _process_topic
Tries to determine the topic GUID and component, we use NAPs reverse-lookup capabilities.
Method _put
Method _put
Store the given key/value pair, any existing entry with the same key has to be silently overwritten.
Method _put
Method _read_class_definition_file
This helper function loads a class definition file from the disk and returns its contents. The source must be stored in the $_class_definition_filename member.
Method _read_cookie
This method tries to pull the users prefered lanugauce and character set out of a cookie named "midcom_services_i18n".
Method _read_http_negotiation
This method pulls available language and content type data out of the HTTP Headers delivered by the browser and populates the member variables $_http_lang and $_http_content_type. q-parameters for priorization are supported.
Method _register_core_privileges
This internal helper will initialize the default priviliges array with all core privileges currently defined.
Method _register_job
This function adds a validated job to the run queue.
Method _register_loaded_classes
Simple helper that adds a list of classes to the loaded classes listing.
Method _remove
Method _remove
Delete the data with the given key from the database.
Method _remove
Method _remove_all
Method _remove_all
Drops the entire database, preferrably with some kind of truncate operation.
Method _remove_all
Method _render_toolbar
Renders the specified toolbar for the indicated context. If the toolbar is undefined, an empty string is returned. If you want to show the toolbar directly, look for the _show_toolbar method.
Method _resolve_permalink_in_topic
Method _set_cookie
Sets the cookie according to the session configuration as outlined in the class introduction.
Method _set_startup_langs
Scans the HTTP negotiation and the cookie data and tries to set a suitable default language. Cookies have priority here.
Method _set_type
Sets the type of the object, reflecting the inheritance hierarchy.
Method _start_caching
This function will start the output cache. Call this before any output is made. MidCOM's startup sequence will automatically do this.
Method _synchronize_midgard_language
Set the Midgard Language to the one defined in the language database.
Method _sync_user_with_backend
Internal helper, synchronizes the main service class with the authentication state of the authentication backend.
Method _unobfuscate_password
Reverses password obfuscation.
Method _update_user_password
This function is called by the framework whenever a users' password is updated. It will synchronize all active login sessions of that user to the new password.
Method _update_user_username
This function is called by the framework whenever a users' username is updated. It will synchronize all active login sessions of that user to the new username.
Method _validate_class_definition_list
This helper function validates a class definition list for correctness. Any error will be logged and false is returned..
Method _validate_handler
This is an helper function used during validation. It ensures that handler class is loaded. It has auto-class-loading support, which allows the component author to have the cron classes only loaded on demand (see class introduction).
Method _validate_job
This function checks a jobs definition for validity.
Method _write_attachment_tmpfile
Creates a temporary copy of the attachment, the callee must delete it manually after completing procesing.
Method _write_class
Writes the actual class definition, uses some helpers for this.
Method _write_class_definition_registration
Generates a small block at the end of the script which registeres the original definitions with ourselves, so that we don't have to eval this all the time.
Method _write_constructor
Helper, writes the constructor to the class.
Method _write_event_handlers
Helper, writes the event handlers to the class.
Method _write_exec_handlers
Helper, writes the exec handlers to the class.
Method _write_footer
Writes the footer to the class, currently empty.
Method _write_header
Writes the header to the class, this includes a dump of the definition used and the generation timestamp.
Method _write_main_api
Helper, writes the main API to the class.
Method _write_meta_members
This helper adds all definition properties as __$key__ = '$value' members.
a
top
Variable $abstract
The abstract of the document
Variable $admin
Admin user level state. This is true if the currently authenticated user is an Midgard Administrator, false otherwise.
Variable $author
The author of the document
Variable $auth_credencials_found
Flag, which is set to true if the system encountered any new login credencials during startup. If this is true, but no user is authenticated, login did fail.
Method access_denied
This is called by $_MIDCOM->generate_error(MIDCOM_ERRFORBIDDEN, ...) if and only if the headers have not yet been sent. It will display the error message and appends the login form below it.
Method access_denied
??? IS THIS NEEDED ???
Method add
This call adds a script to the code file cache. Any existing file will be truncated before the new file is written.
Method add
Add a message to be shown to the user.
Method add_date
Add a date field. A timestamp is expected, which is automatically converted to a suiteable ISO timestamp before storage.
Method add_date_pair
This is a small helper which will create a normal date field and a unindexed _TS-postfixed timestamp field at the same time.
Method add_delete
Adds a delete request.
Method add_deleteall
Adds a drop index request.
Method add_index
Index one or more documents.
Method add_keyword
Add a keyword field.
Method add_query
Add a query to the request.
Method add_result
Add a search result field, this should normally not be done manually, the indexer will call this function when creating a document out of a search result.
Method add_text
Add a text field.
Method add_topic_management_commands
Adds the topic management commands to the specified toolbar.
Method add_unindexed
Add a unindexed field.
Method add_unstored
Add a unstored field.
Method authenticate
This function checks the given username / password pair is valid and sets the $user member accordingly. The default implementation checks against mgd_auth_midgard and retrieves the user using $_MIDGARD.
Method authenticate_session
This function authenticates a given session, which must have been loaded previously with load_login_session (this is mandatory).
Page auth.php
auth.php in auth.php
Page attachment.php
attachment.php in attachment.php
b
top
Method bind_metadata_to_object
Method bind_to
Binds view metadata to a DBA content object
Method bind_toolbar_to_object
Binds the a toolbar to a DBA object. This will append a number of globally available toolbar options. For example, expect Metadata- and Version Control-related options to be added.
Page backend.php
backend.php in backend.php
Page backend.php
backend.php in backend.php
Page backend.php
backend.php in backend.php
c
top
Variable $component
The name of the component responsible for the document. May be empty for non-midgard resources.
Variable $content
The content of the document
Variable $created
The time of document creation, this is an UNIX timestamp.
Variable $creator
The MidgardPerson who created the object.
Variable $current_session_id
Once a session has been authenticated, this variable holds the ID of the current login session.
Method can_do
Checks wether a user has a certain privilege on the given content object.
Method can_user_do
Checks, wether the given user have the privilege assigned to him in general.
Method cdataHandler
The character data collector.
Method close
Close the database that has been opened previosly with open(). If the database is already closed, the request is ignored silently.
Method content_type
Sets the content type for the current page. The required HTTP Headers for are automatically generated, so, to the contratry of expires, you just have to set this header accordingly.
Method convert_from_utf8
This function will convert a string assumed to be in UTF-8 to the currently active charset.
Method convert_to_current_charset
Converts the given string to the current site charset. The charset should be specified explicitly, as autodetection is very very error prone (though sometimes you don't have a choice).
Method convert_to_utf8
This function will convert a string assumed to be in the currently active charset to UTF8.
Method create
Creates a new entry in the localization library. For the string $string in the language $language the translation $translation will be added. The function assumes that $translation is in UTF-8. It will create a language subdir if neccessary. Returns true on success, false on failure.
Method create_identifier
This function creates a filename out of the given namespace and local identifier pair.
Method create_login_session
This function stores a login session using the given credencials through the
Method create_login_session
Creates a login session using the given arguments. Returns a session identifier.
Method create_object
This class creates a new temporary object for use with the application.
Method create_permalink
This small helper should be used to create Permalink URLs from GUIDs. It always points to the live site (given correct system configuration).
Page content.php
content.php in content.php
Page cache.php
cache.php in cache.php
Page cron.php
cron.php in cron.php
d
top
Variable $document_url
The fully qualified URL to the document, this should be a PermaLink.
Method datamanager2_get_text_representation
Returns a textual representation of the specified datamanager2 field.
Method datamanager_get_text_representation
Returns a textual representation of the specified datamanager field.
Method delete
Removes the document with the given resource identifier from the index.
Method delete
Removes the document with the given resource identifier from the index.
Method delete
Removes the document with the given resource identifier from the index.
Method delete
Deletes a string from the database. If the string is not present, it will fail silently.
Method delete
Removes the document with the given resource identifier from the index.
Method delete_all
Clear the index completly.
Method delete_all
Clear the index completly.
Method delete_all
Clear the index completly.
Method delete_all
Clear the index completly.
Method delete_session
Call this function to drop a session which has been previously loaded successfully.
Method delete_virtual_group
Delete a registered virtual group in the system. This requires the privilege midcom:vgroup_delete assigned to the user (there is no content object checked).
Method drop_login_session
This is a limited version of logout: It will just drop the current login session, but keep the request running. This means, that the current request will stay authenticated, but any subsequent requests not.
Method drop_sudo
Drops previously aquired superuser privileges.
Method dump
Debugging helper, which will dump the documents contents to the log file using the indicated log level. It will check the log-level explicitly for performance reasons.
Page dba.php
dba.php in dba.php
Page dbclassloader.php
dbclassloader.php in dbclassloader.php
Page datamanager2.php
datamanager2.php in datamanager2.php
Page datamanager.php
datamanager.php in datamanager.php
Page document.php
document.php in document.php
Page date.php
date.php in date.php
e
top
Variable $edited
The time of the last document modification, this is an UNIX timestamp.
Variable $editor
The MidgardPerson who modified the object the last time.
Method enabled
Simple helper, returns true if the indexer service is online, false if it is disabled.
Method enable_live_mode
Use this funciton to put the cache into a "live mode". This will disable the cache during runtime, correctly flushing the output buffer and sending cache control headers. You will not be able to send any additional headers after executing this call therefore you should adjust the headers in advance.
Method execute
This is the main cron handler function.
Method exists
Checks, if the specified key has been added to the session store.
Method exists
Checks, if the specified key has been added to the session store.
Method exists
Checks for the existance of a key in the cache.
Method exists
Method exists
Checks, wether the given key exists in the Database. If the data store has not yet been opened for reading, it will be opened automatically prior to the call, and closed automatically again afterwards.
Method expires
Sets the expiration time of the current page (Unix (GMT) Timestamp).
f
top
Method fields_to_members
This function should be called after retrieving a document from the index. It will populate all relevant members with the according values.
Method flush
This will flush the complete string table to the filesystem.
Page form.php
form.php in form.php
Page frontend.php
frontend.php in frontend.php
Page flatfile.php
flatfile.php in flatfile.php
Page filter.php
filter.php in filter.php
g
top
Global $GLOBALS["midcom_services_i18n__l10n_localedb"]
Global string table cache, it stores the string tables loaded during runtime.
Global $GLOBALS['midcom_cache']
Global instance of the Caching service. This is also available as $midcom->cache.
Method get
Get the data accociated with the given key. If the data store has not yet been opened for reading, it will be opened automatically prior to the call, and closed automatically again afterwards.
Method get
Method get
Looks up a value in the cache and returns it. Not existant keys are caught in this call as well, so you do not need to call exists first.
Method get
Returns a value from the session.
Method get
Retrieves a localized string from the database using $language as
Method get
Returns a value from the session.
Method get_all_string_ids
Scans the current library and delivers all string ids that are in use.
Method get_all_vgroups
Returns a listing of all known(!) virtual groups.
Method get_assignee
Factory Method: Resolves any assignee identifier known by the system into an appropriate user/group object.
Method get_classes_for_table
Returns a list of loaded classes that operate on the given table name. The
Method get_current_charset
Returns the current character set
Method get_current_language
Returns the current language code
Method get_default_privileges
Returns the system-wide basic privilege set.
Method get_end
Returns the end of the filter range, may be 0.
Method get_fallback_language
Returns the current fallback language code
Method get_field
Returns the name of the field.
Method get_field
Returns the contents of the field name or false on failure.
Method get_field_record
Returns the complete internal field record, including type and UTF-8 encoded content.
Method get_group
Returns a midcom_core_group instance. Valid arguments are either a valid group identiefier (group:... or vgroup:...), any valid identifier for the midcom_core_group constructor or a valid object of that type.
Method get_l10n
Returns an l10n class instance (see the snippet documentation at /midcom/services/_i18n_l10n for details) which can be used to access the localization data of the current component. Using the special name "midcom" you will get the midcom core l10n library.
Method get_language_db
Returns the language database.
Method get_midcom_class_name_for_legacy_midgard_object
Get a MidCOM DB class name for a legacy Midgard Object.
Method get_midcom_class_name_for_mgdschema_object
Get a MidCOM DB class name for a MgdSchema Object.
Method get_midgard_group_by_name
This is a wrapper for get_group, which allows Midgard Group retrieval by its name.
Method get_nap_cache
Returns the NAP cache accociated with the topic tree identified by the parameter $root_topic_guid. The constructed cache database name will be "NAP_{$root_topic_guid}".
Method get_node_metadata
Returns a reference to the node metadata of the specified context. The metadata will be created if this is the first request.
Method get_node_toolbar
Returns a reference to the node toolbar of the specified context. The toolbars will be created if this is the first request.
Method get_online_users
Extended check for online users. Returns an array of guid=>midcom_core_user pairs of the users which are currently online. This takes privileges into account and will thus only list users which the current user has the privililege to observe.
Method get_online_users_count
Returns the total number of users online. This does not adhere the isonline check, as there is no information about which users are online.
Method get_owner_default_privileges
Returns the system-wide basic owner privilege set.
Method get_page_class
Gets the class of the current page of a context
Method get_privileges
Returns a full listing of all currently known privileges for a certain object/user combination.
Method get_start
Returns the start of the filter range, may be 0.
Method get_string
Returns a translated string using the l10n database specified in the function arguments.
Method get_user
Factory Method: Loads a user from the database and returns an object instance.
Method get_user_by_name
This is a wrapper for get_user, which allows user retrieval by its name.
Method get_view_metadata
Returns a reference to the view metadata of the specified context. The metadata will be created if this is the first request.
Method get_view_toolbar
Returns a reference to the view toolbar of the specified context. The toolbars will be created if this is the first request.
Method get_xml
Surrounds the request data with an xml header and the request tags and returns the result.
h
top
Method html2text
This is a small helper that converts HTML to plain text (relativly simple):
Method html_entity_decode
Charset-aware replacement of html_entity_decode. Uses Iconv to modify the HTML_ENTITIES translation tables.
i
top
Variable $indexed
The timestamp of indexing.
Method iconv
This is a calling wrapper to the iconv library. See the PHP iconv() function for the exact parameter definitons.
Method index
Adds a document to the index.
Method index
Adds a document to the index.
Method index
Adds a document to the index.
Method index
Adds a document to the index.
Method initialize
Initialize the service:
Method initialize
Cache service startup. It initializes all cache modules configured in the global configuration as outlined in the class introduction.
Method initialize
Initialize the message stack on service start-up. Reads older unshown messages from user session.
Method initialize
Initialize the module. This will initialize the class configuration and call the corresponding event handler.
Method initialize
Initializes the backend by acquiring all neccessary information required for runtime.
Method invalidate
Invalidates the GUID for all known data groups.
Method invalidate
The GUID invalidation wrapper is empty, as cached script files are not bound to any GUID.
Method invalidate
Invalidates all cache records accociated with a given content object.
Method invalidate
Invalidate all cache objects related to the given GUID.
Method invalidate
This function currently maps to invalidate_all unconditionally, as there is no leaf-level invalidation of content cache objects yet.
Method invalidate
Invalidates all cache objects related to the GUID specified. This function is aware for NAP / Metadata caches. It will invalidate the node/leaf record pair upon each invalidation.
Method invalidate_all
The invalidate_all call will just remove all .php files from the defined cache directory.
Method invalidate_all
Invalidate all caches completly.
Method invalidate_all
Invalidate the cache completly, dropping all entries. The default implementation will drop all entries from all registered cache backends using midcom_services_cache_backend::remove_all(). Override this function, if this behavoir doesn't suit your needs.
Method is_a
Checks wether the given document is an instance of given document type.
Method is_group_member
Check, wether a user is member of a given group. By default, the query is run against the currently authenticated user.
Method is_legacy_midgard_object
Simple helper to check wether we are dealing with a legacy midgard object or a subclass thereof.
Method is_mgdschema_object
Simple helper to check wether we are dealing with a MgdSchema object or a subclass thereof.
Method is_midcom_db_object
Simple helper to check wether we are dealing with a MidCOM Database object or a subclass thereof.
Method is_user_online
Checks the online state of a given user. You require the privilege midcom:isonline for the user you are going to check. The privilege is not granted by default, to allow users full control over their privacy.
Method is_valid_user
Returns true if there is an authenticated user, false otherwise.
Page i18n.php
i18n.php in i18n.php
Page indexer.php
indexer.php in indexer.php
l
top
Method list_fields
Returns a list of all defined fields.
Method load
Checks the cache entry against the passed last modification timestamp. If it is still valid, the corresponding file is loaded by using require_once(). Otherwise, the cache copy is deleted and false will be returned, you have to create the cache entry using the add() call then.
Method load_classes
this is the main class loader function. It takes a component/filename pair as arguments, the first specifying the place to look for the latter.
Method load_login_session
Checks the system for a valid login session matching the passed arguments.
Method load_mgdschema_class_handler
This function is required by the DBA interface layer and should normally not be used outside of it.
Method load_module
This helper function will load the specified cache module (if not already loaded), add it to the _modules array and assign it to a member variable named after the module.
Method logout
This call tells the backend to clear any authentication state, then relocates the user to the sites' root URL, so that a new, unauthenticated request is started there.
Method logout
The logout function should delete the currently active login session, which has been loaded by a previous call to read_login_session.
Method lookup_parent_guid
This is a little helper that tries to look up a parent GUID in the memory cache's PARENT data group. If it is not found, false is returned.
m
top
Method members_to_fields
This will translate all member variables into appropriate field records, the backend should call this immediately before indexing.
Page memcached.php
memcached.php in memcached.php
Page memcache.php
memcache.php in memcache.php
Page module.php
module.php in module.php
Page midcom.php
midcom.php in midcom.php
Page metadata.php
metadata.php in metadata.php
Class midcom_cron_tmpservice
midcom_cron_tmpservice in tmpservice.php
Method midcom_services_auth
Simple constructor, calls base class and initializes the data members where applicable.
Class midcom_services_auth
Main Authentication/Authorization service class, it provides means to authenticate users and to check for permissions.
Method midcom_services_auth_backend
The constructor should do only basic initialization.
Class midcom_services_auth_backend
Authentication backend, responsible for validating user/password pairs and mapping them to a given user as well as the "sessioning" part, e.g. the transition of the authentication credencials over several requests.
Class midcom_services_auth_backend_simple
The simple auth backend uses cookies to store a session identifier which consists of the midgard person GUID.
Method midcom_services_auth_backend_simple
Read the configuration
Class midcom_services_auth_frontend
Authentication frontend, responsible for rendering the login screen, reading the credencials and displaying access denied information.
Method midcom_services_auth_frontend
The constructor should do only basic initialization.
Class midcom_services_auth_frontend_form
Form-based authentication frontend. This one is rather simple, it just renders a two-field (username/password) form which is targeted at the current URL.
Method midcom_services_auth_frontend_form
Nothing to do here.
Class midcom_services_auth_sessionmgr
This class is responsible for managing login session, mainly concentrating on DB I/O.
Method midcom_services_auth_sessionmgr
Simple, currently empty default constructor.
Method midcom_services_cache
Class midcom_services_cache
This class is the central access point for all registered caching services. Currently this includes the NAP, Metadata and Page cache databases.
Class midcom_services_cache_backend
This is the base class of the MidCOM Cache backend infrastructure. It provides a general interface for the caching services by encaspulating the calls specific to the data storage interface.
Method midcom_services_cache_backend
The constructor just initializes the empty object. The actual initialization is done by the initialize() event which does the actual configuration.
Method midcom_services_cache_backend_dba
The constructor is empty yet.
Class midcom_services_cache_backend_dba
DBA-Style flat file database caching backend.
Class midcom_services_cache_backend_flatfile
Simple flat file database backend. Creates a file per key.
Method midcom_services_cache_backend_flatfile
The constructor is empty yet.
Method midcom_services_cache_backend_memcached
The constructor is empty yet.
Class midcom_services_cache_backend_memcached
Memcached caching backend.
Method midcom_services_cache_module
Class initialization, nothing to do yet.
Class midcom_services_cache_module
This is the base class for the MidCOM cache modules. It provides a basic infrastructure for building your own caching service, providing hooks for initialization and shutdown.
Class midcom_services_cache_module_content
This is the Output Caching Engine of MidCOM. It will intercept page output, map it using the currently used URL and use the cached output on subsequent requests.
Method midcom_services_cache_module_content
Module constructor, relay to base class.
Method midcom_services_cache_module_memcache
Module constructor, relay to base class.
Class midcom_services_cache_module_memcache
The Memory caching system is geared to hold needed information available quickly.
Method midcom_services_cache_module_nap
Module constructor, relay to base class.
Class midcom_services_cache_module_nap
This is the NAP/Metadata caching module. It provides the basic management functionality for the various backend databasese which will be created based on the root topic of the NAP trees (thus the cache can be shared between AIS and on-site pages).
Class midcom_services_cache_module_phpscripts
This cache module is desiged to cache files generated by various MidCOM code generation system. This includes:
Function midcom_services_cache_startup
Helper function, starts up the caching system, assigns it to the global variable $GLOBALS['midcom_cache'].
Class midcom_services_cron
This is the handling class of the cron service. When executed, it checks all component manifests for cron jobs and runs them sequentially. The components are processed in the order they are returned by the component loader, the jobs of a single component are run in the order they are listed in the configuration array.
Method midcom_services_cron
Empty constuctor yet.
Method midcom_services_dbclassloader
Initializies the class for usage.
Class midcom_services_dbclassloader
midcom_services_dbclassloader in dbclassloader.php
This class acts as an automated way of generating MidCOM level wrapper classes for MgdSchema based database objects.
Method midcom_services_i18n
This method initializes the available i18n framework by determining
Class midcom_services_i18n
This is a basic Midcom Service which provides an interfaces to the various I18n facilities of Midcom.
Method midcom_services_indexer
Initialization
Class midcom_services_indexer
This class is the main access points into the MidCOM Indexer subsystem.
Method midcom_services_indexer_backend
Class midcom_services_indexer_backend
This class provides an abstract base class for all indexer backends.
Method midcom_services_indexer_backend_xmlshell
Constructor is empty at this time.
Class midcom_services_indexer_backend_xmlshell
XMLComm implementation using a shell interface.
Method midcom_services_indexer_backend_xmltcp
Constructor is empty at this time.
Class midcom_services_indexer_backend_xmltcp
XMLComm implementation using a TCP/IP interface.
Class midcom_services_indexer_document
This class encaspulates a single indexer document. It is used for both indexing and retrieval.
Method midcom_services_indexer_document
Initialize the object, nothing fancy here.
Class midcom_services_indexer_document_attachment
This is a class geared at indexing attachments. It requires you to "assingn" the attachment to a topic, which is used as TOPIC_URL for permission purposes. In addition you may set another MidgardObject as source object, it's GUID is stored in the __SOURCE field of the index.
Method midcom_services_indexer_document_attachment
Create a new attachment document
Method midcom_services_indexer_document_datamanager
The constructor initializes the memebervariables and invokes _process_datamanager, which will read and process the information out of that instance.
Class midcom_services_indexer_document_datamanager
This class is geared to ease indexing of datamanager driven documents. The user invoking the indexing must have full read permissions to the object otherwise the NAP or Metadata objects can probably not be loaded successfully.
Class midcom_services_indexer_document_datamanager2
This class is geared to ease indexing of datamanager2 driven documents. The user invoking the indexing must have full read permissions to the object otherwise the NAP or Metadata objects can probably not be loaded successfully.
Method midcom_services_indexer_document_datamanager2
The constructor initializes the memebervariables and invokes _process_datamanager, which will read and process the information out of that instance.
Method midcom_services_indexer_document_midcom
The constructor initializes the content object, loads the metadata object and populates the metadata fields accordingly.
Class midcom_services_indexer_document_midcom
This is a base class which is targeted at MidCOM content object indexing. It should be used whenever MidCOM documents are indexed, either directly or as a base class.
Class midcom_services_indexer_filter
This class provides an abstract base class for all indexer query filters.
Method midcom_services_indexer_filter
Initialize the class.
Method midcom_services_indexer_filter_date
Create a new date filter.
Class midcom_services_indexer_filter_date
This class provides an abstract base class for all indexer query filters.
Class midcom_services_indexer_XMLComm_RequestWriter
This class provides an interface to the MRFC 14 XML driven indexer backends.
Method midcom_services_indexer_XMLComm_RequestWriter
Initialize an XMLComm Request Writer.
Class midcom_services_indexer_XMLComm_ResponseReader
This class provides an interface to the MRFC 14 XML driven indexer backends.
Method midcom_services_indexer_XMLComm_ResponseReader
Initialize the XML Parser.
Method midcom_services_metadata
Simple constructor, calls base class.
Class midcom_services_metadata
midcom_services_metadata in metadata.php
Metadata service.
Method midcom_services_permalinks
Empty default constructor. Calls parent.
Class midcom_services_permalinks
midcom_services_permalinks in permalinks.php
Permalink management service.
Class midcom_services_tmp
Temporary data management service.
Method midcom_services_tmp
Simple constructor, calls base class.
Class midcom_services_toolbars
midcom_services_toolbars in toolbars.php
On-site toolbar service.
Method midcom_services_toolbars
Simple constructor, calls base class.
Class midcom_services_uimessages
midcom_services_uimessages in uimessages.php
User interface messaging service
Method midcom_services_uimessages
Simple constructor, calls base class.
Class midcom_services__i18n_l10n
midcom_services__i18n_l10n in _i18n_l10n.php
This is the L10n main interface class, used by the components. It allows you to get entries from the l10n string tables in the current language with an automatic conversion to the destination character set.
Method midcom_services__i18n_l10n
The constructor loads the translation library indicated by the snippetdir path $library and initializes the system completly. The output character set will be initizialized to the language's default.
Method midcom_service_session
Constructs a session object.
Class midcom_service_session
midcom_service_session in session.php
Provides sessioning for components.
Method midcom_service__sessioning
The constructor will initialize the sessioning, set the output nocacheable and initialize the session data. This might involve creating an empty session array.
Class midcom_service__sessioning
midcom_service__sessioning in _sessioning.php
Base singelton class of the MidCOM sessioning service.
n
top
Page nap.php
nap.php in nap.php
Method new_document
This function tries to instantinate the most specific document class for the object given in the parameter.
Method no_cache
Call this, if the currently processed output must not be cached for any reason. Dynamic pages with sensitive content are a candidate for this function.
Method numeric_entity_decode
This little helper converts a single numeric HTML entity into its current native equivalent.
o
top
Method on_login_session_deleted
Method open
Open the database for usage. If $write is set to true, it must be opened in read/write access, otherwise read-only access is sufficient.
p
top
Page phpscripts.php
phpscripts.php in phpscripts.php
Page permalinks.php
permalinks.php in permalinks.php
Method parse
This function will parse the given string. Any error from Expat will trigger generate_error.
Method populate_meta_head
Populates appropriate metadata into XHTML documents based on metadata information available to MidCOM for the request.
Method print_statistics
Cache statistic dump to stdout.
Method privilege_exists
This is a simple helper function which validates whether a given privilege exists by its name. Essentially this checks if a corresponding default privilege has been registered in the system.
Method put
Sets a fiven key in the cache. If the data group is unknown, a Warning-Level error is logged and putting is denied.
Method put
Store the given key/value pair, any existing entry with the same key has to be silently overwritten. If the data store has not yet been opened for writing, it will be opened automatically prior to the call, and closed automatically again afterwards.
Method put
q
top
Method query
Query the index and, if set, restrict the query by a given filter.
Method query
Query the index and, if set, restrict the query by a given filter.
Method query
Query the index and, if set, restrict the query by a given filter.
Method query
Query the index and, if set, restrict the query by a given filter.
r
top
Variable $resultsets
An array of resultsets. An resultset is an array of documents.
Variable $RI
The Resource Identifier of this document. Must be UTF-8 on assignement already.
Method read_authentication_data
This call should process the current authentication credentials and return the username / password pair that should be tried to authentication or null for anonymous access.
Method read_authentication_data
This call checks wether the two form fields we have created are present, if yes it reads and returns their values.
Method read_login_session
This function, always called first in the order of execution, should check wether we have a usable login session. It has to use the login session management system To load a login session. At the end of the successful execution of this function, you have to populate the $session_id and $user members accordingly.
Method read_login_session
Method register_default_privileges
Merges a new set of default privileges into the current set.
Method register_sent_header
This method stores a sent header into the cache database, so that it will be resent when the cache page is delivered. midcom_application::header() will automatically call this function, you need to do this only if you use the PHP header function.
Method register_virtual_group
Register a virtual group in the system. This requires the privilege midcom:vgroup_register assigned to the user (there is no content object checked).
Method remove
Removes the value accociated with the specified key. Returns null if the key is non-existant or the value of the key just removed otherwise. Note, that this is not neccessarily a valid non-existance check, as the sessioning system does allow null values. Use the exists function if unsure.
Method remove
Method remove
Removes the value accociated with the specified key. Returns null if the key is non-existant or the value of the key just removed otherwise. Note, that this is not neccessarily a valid non-existance check, as the sessioning system does allow null values. Use the exists function if unsure.
Method remove
Delete the data with the given key from the database. Deleting non existant keys should fail silently. If the data store has not yet been opened for writing, it will be opened automatically prior to the call, and closed automatically again afterwards.
Method remove_all
Method remove_all
Drops the entire database and creates an empty one.
Method remove_field
Remove a field from the list. Nonexistent fields are ignored silently.
Method render_node_toolbar
Renders the node toolbar for the indicated context. If the toolbar is undefined, an empty string is returned. If you want to show the toolbar directly, look for the show_xxx_toolbar methods.
Method render_view_toolbar
Renders the view toolbar for the indicated context. If the toolbar is undefined, an empty string is returned. If you want to show the toolbar directly, look for the show_xxx_toolbar methods.
Method request_object
Loads the temporary object identified by the argument from the DB, verifies ownership (using the midgard:owner privilege) and returns the instance.
Method request_sudo
Request superuser privileges for the domain passed.
Method require_admin_user
Validates that we currently have admin level privileges, which can either come from the current user, or from the sudo service.
Method require_do
Validates that the current user has the given privilege granted on the content object passed to the function.
Method require_group_member
Validates that the current user is a member of the given group.
Method require_user_do
Validates, wether the given user have the privilege assigned to him in general.
Method require_valid_user
Validates that there is an authenticated user.
Method resolve_permalink
This function resolves any GUID into a fully qualified URL which can be reolocated to. It operates in multiple phases:
s
top
Variable $score
This is the score of this document. Only populated on resultset documents, of course.
Variable $security
Security mechainsm used to determine the availability of a search result.
Variable $sessionmgr
This is a reference to the login session management system.
Variable $session_id
The ID of the session we are currently using, usable as an authentication token in the login session manager.
Variable $source
An additional tag indicating the source of the document for use by the component doing the indexing. This value is not indexed and should not be used by anybody except the component doing the indexing.
Page simple.php
simple.php in simple.php
Page sessionmgr.php
sessionmgr.php in sessionmgr.php
Page session.php
session.php in session.php
Method set
This will store the value to the specified key.
Method set
This will store the value to the specified key.
Method set_charset
Set output character set.
Method set_charset
Set output character set.
Method set_fallback_language
Set the fallback language.
Method set_fallback_language
Set the fallback language.
Method set_language
Set output language.
Method set_language
Set output language.
Method set_page_class
Sets the class of the current page for a context
Method show
Show the message stack via javascript calls
Method show
This is a shortcut for "echo $this->get(...);", useful in style code.
Method show
Displays the combined MidCOM toolbar system
Method show_authentication_form
This call renders a simple form without any formatting (that is to be done by the callee) that asks the user for his username and password.
Method show_authentication_form
This call should show the authentication form (or whatever means of input you use). This content you print is assumed to work within an HTML DIV element, so you should usually stick to a simple form, which should also by styleable using CSS alone.
Method show_login_form
This function should be used to render the main login form. This does only include the form, no heading or whatsoever.
Method show_login_page
This will show a complete login page unconditionally and exit afterwards.
Method show_node_toolbar
Displays the node toolbar for the indicated context. If the toolbar is undefined, an empty string is returned.
Method show_string
This is a shortcut for echo $this->get_string(...);. To keep the naming stable with the actual l10n class, this is not called echo_string (Zend won't allow $l10n->echo().)
Method show_view_toolbar
Displays the view toolbar for the indicated context. If the toolbar is undefined, an empty string is returned.
Method shutdown
Shuts the module down. This will fist call the corresponding event handler, and will close all registered backends afterwards.
Method shutdown
Shutdown the backend. This calls the corresponding event.
Method shutdown
Shuts all cache modules down. The content module is explicitly stopped as the last module for clear content cache handling (it might exit()).
Method store
Store unshown UI messages from the stack to user session.
Method string_available
Checks wether the given string is available in either the current or the fallback language. Use this to determine if an actually processed result is returned by get. This is helpful especially if you want to "catch" cases where an string might translate to itself in some languages.
Method string_exists
Checks if a localized string for $string exists. If $language is unset, the current language is used.
t
top
Variable $title
The title of the document
Variable $topic_guid
The GUID of the topic the document is assigned to. May be empty for non-midgard resources.
Variable $topic_url
The full path to the topic that houses the document. For external resources, this should be either a MidCOM topic, to which this resource is accociated or some "directory" after which you could filter. You may also leave it empty prohibiting it to appear on any topic-specific search.
Variable $type
This variable is set by the subclass constructors and indicates the type of the filter.
Variable $type
The type of the document, set by subclasses and added to the index automatically.
Page tmpservice.php
tmpservice.php in tmpservice.php
Page tmp.php
tmp.php in tmp.php
Page toolbars.php
toolbars.php in toolbars.php
u
top
Variable $user
The currently authenticated user or null in case of anonymous access.
Variable $user
This variable holds the user that has been successfully authenticated by the class, it is considered to be read-only.
Page uimessages.php
uimessages.php in uimessages.php
Method uncached
Call this, if the currently processed output must not be cached for any reason. Dynamic pages or form processing results are the usual candidates for this mode.
Method update
Updates a string in the database. If it does not exist, it will be created automatically.
Method update_parent_guid
This is a little helper that tries to look up a parent GUID in the memory cache's PARENT data group. If it is not found, false is returned.
w
top
Variable $warnings
An array of warnings that have been found.
x
top
Page XMLCommClient.php
XMLCommClient.php in XMLCommClient.php
Page xmlshell.php
xmlshell.php in xmlshell.php
Page xmltcp.php
xmltcp.php in xmltcp.php
Method xmltag_document
Start a new document.
Method xmltag_document_
The document is complete.
Method xmltag_error
Start an error record.
Method xmltag_error_
The error is complete.
Method xmltag_field
Start a new document field.
Method xmltag_field_
The field is complete.
Method xmltag_resultset
Start a new resultset.
Method xmltag_resultset_
The resultset is complete.
Method xmltag_warning
Start a new warning record.
Method xmltag_warning_
The warning is complete.
a b c d e f g h i l m n o p q r s t u w x _