$_topic
$_topic : \midcom_db_topic
The topic for which we are handling a request.
Comments view handler.
This handler is a single handler which displays the thread for a given object GUID. It checks for various commands in $_REQUEST during startup and processes them if applicable. It relocates to the same page (using $_SERVER info) to prevent duplicate request runs.
$_topic : \midcom_db_topic
The topic for which we are handling a request.
$_master : \midcom_baseclasses_components_request
The request class that has invoked this handler instance.
$_node_toolbar : \midcom_helper_toolbar
The node toolbar for the current request context. Not available during the can_handle phase.
None found |
$_view_toolbar : \midcom_helper_toolbar
The view toolbar for the current request context. Not available during the can_handle phase.
None found |
$_component : string
The name of the component, e.g. net.nehmer.static. Should be used whenever the component's name is required instead of hardcoding it.
None found |
None found |
$_l10n : \midcom_services_i18n_l10n
The components' L10n string database.
None found |
$_l10n_midcom : \midcom_services_i18n_l10n
The global MidCOM string database.
None found |
$_config : \midcom_helper_configuration
The current configuration.
None found |
None found |
None found |
None found |
$_schemadb : \midcom\datamanager\schemadb
The schema database to use.
None found |
None found |
$_new_comment : \net_nehmer_comments_comment
A new comment just created for posting.
None found |
None found |
$_post_controller : \midcom\datamanager\controller
The controller used to post a new comment. Only set if we have a valid user.
None found |
$_display_datamanager : \midcom\datamanager\datamanager
This datamanager instance is used to display an existing comment. only set if there are actually comments to display.
None found |
populate_post_toolbar(\net_nehmer_comments_comment $comment, $viewtype = null)
\net_nehmer_comments_comment | $comment | |
$viewtype |
None found |
initialize(\midcom_baseclasses_components_request $master, \Symfony\Component\Routing\Router $router)
Initializes the request handler class, called by the component interface after instantiation.
Be aware that it is possible that a handler can come from a different component (or library) than the master class. Take this into account when getting the component data storage, configuration and l10n instances. Configuration is merged during runtime based on the system defaults and all parameters attached to the topic we're currently operating on.
\midcom_baseclasses_components_request | $master | The request class |
\Symfony\Component\Routing\Router | $router |
None found |
_on_initialize()
Initialization event handler, called at the end of the initialization process.
Use this for all initialization work you need, as the component state is already populated when this event handler is called.
None found |
show(string $element) : \midcom_response_styled
Generates a response with a given style element
string | $element |
None found |
add_breadcrumb(string $url, string $title)
Registers a new breadcrumb entry
string | $url | The URL |
string | $title | The text to display |
None found |
populate_breadcrumb_line()
Adds the registered breadcrumb entries to context_data
None found |
bind_view_to_object(\midcom_core_dbaobject $object, string $page_class = 'default')
Binds the current page view to a particular object. This will automatically connect such things like metadata and toolbars to the correct object.
\midcom_core_dbaobject | $object | The DBA class instance to bind to. |
string | $page_class | String describing page type, will be used for substyling |
None found |
__construct()
Initialize all member variables, remember to set $_component before calling this constructor from your derived classes.
None found |
None found |
None found |
None found |
add_stylesheet(string $url, string $media = false)
Convenience shortcut for adding CSS files
string | $url | The stylesheet URL |
string | $media | The media type(s) for the stylesheet, if any |
None found |
get_workflow(string $identifier, array $options = array()) : \midcom\workflow\dialog
string | $identifier | |
array | $options |
None found |
_handler_comments(mixed $handler_id, array $args, array $data)
Loads the comments, does any processing according to the state of the GET list.
On successful processing we relocate once to ourself.
mixed | $handler_id | The ID of the handler. |
array | $args | The argument list. |
array | $data |
None found |
_show_comments(mixed $handler_id, array $data)
Display the comment list and the submit-comment form.
mixed | $handler_id | The ID of the handler. |
array | $data |
None found |
None found |
None found |