Framework  3.9
GroupedListGroup Class Reference

Represents a grouped collection of data within a table. More...

+ Inheritance diagram for GroupedListGroup:
+ Collaboration diagram for GroupedListGroup:

Public Member Functions

 GroupListGroup ($parent, $title, $key, $expanded=false, $fixed=false)
 
 draw ()
 Draws the data group subheading within the table. More...
 
- Public Member Functions inherited from DataGroup
 DataGroup ($parent, $title, $key, $expanded=false, $fixed=false)
 Creates a new DataGroup. More...
 

Additional Inherited Members

- Public Attributes inherited from DataGroup
 $parent
 The parent GroupedDataListView object. More...
 
 $title
 The text to display in the title for this data group. More...
 
 $key
 The key value for this data group. More...
 
 $expanded
 Boolean indicating whether this group should initially be expanded. More...
 
 $fixed
 Specifies whether this group should be fixed (i.e. exempt from expand/collapse toggling). More...
 

Detailed Description

Represents a grouped collection of data within a table.

Author
Janice

Note: 10/2011 - This is a work in progress.

Definition at line 60 of file grouped_list.inc.

Member Function Documentation

◆ draw()

GroupedListGroup::draw ( )

Draws the data group subheading within the table.

Reimplemented from DataGroup.

Definition at line 67 of file grouped_list.inc.

68  {
69  $attrs = "";
70  if ($this->cssClass) $attrs .= " class='{$this->cssClass}'";
71  if ($this->groupStyles) $attrs .= " style='{$this->groupStyles}'";
72 
73  $cssClass = ($this->fixed || $this->parent->mode == 'fixed') ? "fixed" : ($this->expanded) ? "expanded" : "collapsed";
74 
75  echo "<h2 id=\"{$this->parent->group_id}[{$this->key}]\" $attrs>\n";
76  // Output the section title
77  echo "{$this->title}\n";
78  echo "</h2>\n";
79  }

◆ GroupListGroup()

GroupedListGroup::GroupListGroup (   $parent,
  $title,
  $key,
  $expanded = false,
  $fixed = false 
)

Definition at line 62 of file grouped_list.inc.

63  {
64  parent::DataGroup($parent, $title, $key, $expanded, $fixed);
65  }
$fixed
Specifies whether this group should be fixed (i.e. exempt from expand/collapse toggling).
$key
The key value for this data group.
$title
The text to display in the title for this data group.
$expanded
Boolean indicating whether this group should initially be expanded.
$parent
The parent GroupedDataListView object.

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