[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/panels/plugins/display_renderers/ -> panels_renderer_legacy.class.php (summary)

(no description)

File Size: 294 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

panels_renderer_legacy:: (6 methods):
  init()
  add_css()
  render()
  render_regions()
  render_pane()
  render_region()


Class: panels_renderer_legacy  - X-Ref

Legacy render pipeline for a panels display.

This render pipeline mirrors the old procedural system exactly, and plugins
written for the legacy system will work exactly as they did before with this
renderer.

Most plugins will work with the newer renderer. These are the exceptions:
- Style plugins that implement panel styling no longer need to call
panels_render_pane() on all contained panes; rendered pane HTML is now
passed in directly.
- Cache plugins are now triggered on rendered HTML, rather than on
unrendered datastructures, when acting at the display level. When acting
at the pane level, they still receive the unrendered datastructure.

If your site relies on any of these plugin behaviors, you will need to use
this renderer instead of the new panels_renderer_standard() until those
plugins are updated.
init($plugin, &$display)   X-Ref
Include rendered HTML after the layout.


add_css($filename, $type = 'module', $media = 'all', $preprocess = TRUE)   X-Ref
Add CSS information to the renderer.

To facilitate previews over Views, CSS can now be added in a manner
that does not necessarily mean just using drupal_add_css. Therefore,
during the panel rendering process, this method can be used to add
css and make certain that ti gets to the proper location.

The arguments should exactly match drupal_add_css().


render()   X-Ref
Builds inner content, then hands off to layout-specified theme function for
final render step.

This is the outermost method in the Panels render pipeline. It calls the
inner methods, which return a content array, which is in turn passed to the
theme function specified in the layout plugin.

return: string

render_regions()   X-Ref
Render all panes in the attached display into their panel regions, then
render those regions.

return: array $content

render_pane(&$pane)   X-Ref
Render the contents of a single pane.

This method retrieves pane content and produces a ready-to-render content
object. It also manages pane-specific caching.

param: stdClass $pane

render_region($region_name, $panes)   X-Ref
Render a single panel region.

Primarily just a passthrough to the panel region rendering callback
specified by the style plugin that is attached to the current panel region.

param: $region_name
param: $panes
return:



Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7