class panels_display in Panels 5.2
Same name and namespace in other branches
- 8.3 panels.module \panels_display
- 6.3 panels.module \panels_display
- 6.2 panels.module \panels_display
- 7.3 panels.module \panels_display
Forms the basis of a panel display
Hierarchy
- class \panels_display
Expanded class hierarchy of panels_display
4 string references to 'panels_display'
- panels_mini_uninstall in panels_mini/
panels_mini.install - Implementation of hook_uninstall().
- panels_update_5213 in ./
panels.install - Add a field to store pane caching information.
- panels_update_5216 in ./
panels.install - Adds the 'shown' field to the panels_pane table in order to accomodate the new show/hide panes feature.
- panels_update_5218 in ./
panels.install - Oversight in 5216: 'tinyint' is not a field type in pgsql; the type we wanted was 'smallint.'
File
- ./
panels.module, line 557 - panels.module Core API for Panels. Provides display editing and rendering capabilities.
View source
class panels_display {
var $args = array();
var $content = array();
var $panels = array();
var $incoming_content = NULL;
var $css_id = NULL;
var $context = array();
var $title = '';
var $hide_title = 0;
function add_pane($pane, $location = FALSE) {
$pane->pid = $this
->next_new_pid();
if (!$location || !isset($this->panels[$location])) {
foreach ($this->panels as $panel_name => $panel) {
if (array_key_exists($pane->pid, $panel)) {
$this->panels[$panel_name][] = $pane->pid;
}
}
}
else {
$this->panels[$location][] = $pane->pid;
}
}
function duplicate_pane($pid, $location = FALSE) {
$pane = $this
->clone_pane($pid);
$this
->add_pane($pane, $location);
}
function clone_pane($pid) {
$pane = drupal_clone($this->content[$pid]);
foreach (array_keys($this->content) as $pidcheck) {
// necessary?
unset($pane->position);
}
return $pane;
}
function next_new_pid() {
// necessary if/until we use this method and ONLY this method for adding
// temporary pids. then we can do it with a nice static var.
$id = array(
0,
);
foreach (array_keys($this->content) as $pid) {
if (!is_numeric($pid)) {
$id[] = substr($pid, 4);
}
}
$next_id = end($id);
return ++$next_id;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
panels_display:: |
property | |||
panels_display:: |
property | |||
panels_display:: |
property | |||
panels_display:: |
property | |||
panels_display:: |
property | |||
panels_display:: |
property | |||
panels_display:: |
property | |||
panels_display:: |
property | |||
panels_display:: |
function | |||
panels_display:: |
function | |||
panels_display:: |
function | |||
panels_display:: |
function |