| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 3 class panels_renderer_single_pane extends panels_renderer_standard { 4 /** 5 * The pane id of the pane that will be rendered by a call to the render() 6 * method. Numeric int or string (typically if a new-# id has been used). 7 * @var mixed 8 */ 9 var $render_pid; 10 11 /** 12 * Modified build method (vs. panels_renderer_standard::build()); takes just 13 * the display, no layout is necessary. 14 * 15 * @param array $plugin 16 * The definition of the renderer plugin. 17 * 18 * @param panels_display $display 19 * The panels display object to be rendered. 20 */ 21 function init($plugin, &$display) { 22 $this->plugin = $plugin; 23 $this->display = &$display; 24 } 25 26 function prepare($external_settings = NULL) { 27 $this->render_pid = $external_settings; 28 } 29 30 function render() { 31 // If no requested pid, or requested pid does not exist, 32 if (empty($this->render_pid) || empty($this->display->content[$this->render_pid])) { 33 return NULL; 34 } 35 return $this->render_pane($this->display->content[$this->render_pid]); 36 } 37 38 function render_single($pid) { 39 return $this->render_pane($this->display->content[$pid]); 40 } 41 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |