Newsticker / Blog site interface class

package net.nehmer.blog

 Methods

_on_handle ($handler, $args)

Parameters

$handler

$args

_on_initialize ()

Initialize the request switch and the content topic.

article_qb_constraints (\midgard_query_builder $qb, array $data, $handler_id)

Sets the constraints for QB for articles, supports article links etc.
Static

.

Parameters

$qb

\midgard_query_builderreference to the QB object

$data

arrayreference to the request_data array

$handler_id

disable_language_select ()

If the folder already has content in it we should disable the language chooser to avoid confusion
Static

Returns

boolean

get_last_modified (\midcom_db_topic $topic, \mdicom_db_topic $content_topic)

Simple helper, gets the last modified timestamp of the topic/content_topic combination specified.
Static

Parameters

$topic

\midcom_db_topicThe base topic to use.

$content_topic

\mdicom_db_topicThe topic where the articles are stored.

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.

_add_categories ()

Populate the categories configured for the topic into the schemas

_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.