n.n.static create page handler

package net.nehmer.static


_handler_create (mixed $handler_id, array $args, array $data)

Displays an article edit view.

Note, that the article for non-index mode operation is automatically determined in the can_handle phase.

If create privileges apply, we relocate to the index creation article



mixedThe ID of the handler.


arrayThe argument list.


array&$data The local request data.

_on_initialize ()

Maps the content topic from the request data to local member variables.

_show_create (mixed $handler_id, array $data)

Shows the loaded article.



mixedThe ID of the handler.


array&$data The local request data.

dm2_create_callback ($controller)

DM2 creation callback, binds to the current content topic.



get_schema_defaults ()

get_schema_name ()

load_schemadb ()

Loads and prepares the schema database.

Special treatment is done for the name field, which is set hidden if the simple_name_handling config option (auto-generated urlname based on the title) is set.

The operations are done on all available schemas within the DB.

_prepare_request_data ()

Simple helper which references all important members to the request data listing for usage within the style listing.



\midcom_db_article $_article

The article which has been created

\midcom_db_topic $_content_topic

The content topic to use

Array $_defaults

The defaults to use for the new article.

boolean $_indexmode

This flag indicates whether we have been called from the index-article check or not.

string $_schema

The schema to use for the new article.

Array $_schemadb

The schema database in use, available only while a datamanager is loaded.