panels_display Class Reference
[Panels Main API Functions]

List of all members.


Detailed Description

Forms the basis of a panel display

Definition at line 558 of file panels.module.


Public Member Functions

 add_pane ($pane, $location=FALSE)
 clone_pane ($pid)
 duplicate_pane ($pid, $location=FALSE)
 next_new_pid ()

Public Attributes

 $args = array()
 $content = array()
 $context = array()
 $css_id = NULL
 $hide_title = 0
 $incoming_content = NULL
 $panels = array()
 $title = ''

Member Function Documentation

panels_display::add_pane ( pane,
location = FALSE 
)

Definition at line 568 of file panels.module.

References next_new_pid().

Referenced by duplicate_pane().

00568                                               {
00569     $pane->pid = $this->next_new_pid();
00570     if (!$location || !isset($this->panels[$location])) {
00571       foreach ($this->panels as $panel_name => $panel) {
00572         if (array_key_exists($pane->pid, $panel)) {
00573           $this->panels[$panel_name][] = $pane->pid;
00574         }
00575       }
00576     }
00577     else {
00578       $this->panels[$location][] = $pane->pid;
00579     }
00580   }

Here is the call graph for this function:

Here is the caller graph for this function:

panels_display::clone_pane ( pid  ) 

Definition at line 587 of file panels.module.

Referenced by duplicate_pane().

00587                             {
00588     $pane = drupal_clone($this->content[$pid]);
00589     foreach (array_keys($this->content) as $pidcheck) {
00590       // necessary?
00591       unset($pane->position);
00592     }
00593     return $pane;
00594   }

Here is the caller graph for this function:

panels_display::duplicate_pane ( pid,
location = FALSE 
)

Definition at line 582 of file panels.module.

References add_pane(), and clone_pane().

00582                                                    {
00583     $pane = $this->clone_pane($pid);
00584     $this->add_pane($pane, $location);
00585   }

Here is the call graph for this function:

panels_display::next_new_pid (  ) 

Definition at line 596 of file panels.module.

Referenced by add_pane().

00596                           {
00597     // necessary if/until we use this method and ONLY this method for adding
00598     // temporary pids. then we can do it with a nice static var.
00599     $id = array(0);
00600     foreach (array_keys($this->content) as $pid) {
00601       if (!is_numeric($pid)) {
00602         $id[] = substr($pid, 4);
00603       }
00604     }
00605     $next_id = end($id);
00606     return ++$next_id;
00607   }

Here is the caller graph for this function:


Member Data Documentation

panels_display::$args = array()

Definition at line 559 of file panels.module.

panels_display::$content = array()

Definition at line 560 of file panels.module.

panels_display::$context = array()

Definition at line 564 of file panels.module.

panels_display::$css_id = NULL

Definition at line 563 of file panels.module.

panels_display::$hide_title = 0

Definition at line 566 of file panels.module.

panels_display::$incoming_content = NULL

Definition at line 562 of file panels.module.

panels_display::$panels = array()

Definition at line 561 of file panels.module.

panels_display::$title = ''

Definition at line 565 of file panels.module.


The documentation for this class was generated from the following file:

Generated on Thu Jul 29 05:00:19 2010 for Panels 2 by  doxygen 1.5.6