n.n.static site interface class

package net.nehmer.static

 Methods

_on_handle ($handler, $args)

The handle callback populates the toolbars.

Parameters

$handler

$args

_on_initialize ()

Initialize the request switch and the content topic.

get_topic_qb (\midcom_helper_configuration $config, integer $id)

Static

Parameters

$config

\midcom_helper_configuration

$id

integerThe topic ID

Returns

\midcom_core_querybuilderThe querybuilder instance

index (\midcom_helper_datamanager2_datamanager $dm, \midcom_services_indexer $indexer, \midcom_db_topic $topic)

Indexes an article.
Static

Parameters

$dm

\midcom_helper_datamanager2_datamanager&$dm The Datamanager encapsulating the event.

$indexer

\midcom_services_indexer&$indexer The indexer instance to use.

$topic

\midcom_db_topicThe topic which we are bound to. If this is not an object, the code tries to load a new topic instance from the database identified by this parameter.

_determine_content_topic ()

Set the content topic to use.

This will check against the configuration setting 'symlink_topic'.

_populate_node_toolbar ()

Populates the node toolbar depending on the user's rights.

 Properties

 

\midcom_db_topic $_content_topic

The topic in which to look for articles.

This defaults to the current content topic unless overridden by the symlink topic feature.