CMS  Version 3.9
DashboardView Class Reference

Public Member Functions

 DashboardView ($id)
 
 top ($widget)
 
 left ($widget)
 
 right ($widget)
 
 bottom ($widget)
 
 writeScript ()
 
 drawView ()
 

Public Attributes

 $topWidgets
 
 $leftWidgets
 
 $rightWidgets
 
 $bottomWidgets
 
 $id
 

Detailed Description

Definition at line 45 of file dashboard.inc.

Member Function Documentation

◆ bottom()

DashboardView::bottom (   $widget)

Definition at line 77 of file dashboard.inc.

78  {
79  $this->bottomWidgets[] = $widget;
80  }

◆ DashboardView()

DashboardView::DashboardView (   $id)

Definition at line 53 of file dashboard.inc.

54  {
55  $this->id = $id;
56  $this->topWidgets = array();
57  $this->leftWidgets = array();
58  $this->rightWidgets = array();
59  $this->bottomWidgets = array();
60  }

◆ drawView()

DashboardView::drawView ( )

Definition at line 110 of file dashboard.inc.

111  {
112 ?>
113  <div id="<?echo $this->id?>" class="dashboard">
114  <div class="dashboard_top" style="width: 100%">
115 <?
116  foreach($this->topWidgets as $w) $w->drawWidget();
117 ?>
118  </div>
119  <div class="dashboard_left" style="clear:both;width:50%;float:left">
120 <?
121  foreach($this->leftWidgets as $w) $w->drawWidget();
122 ?>
123  </div>
124  <div class="dashboard_right" style="width:50%;float:left">
125 <?
126  foreach($this->rightWidgets as $w) $w->drawWidget();
127 ?>
128  </div>
129  <div class="dashboard_bottom" style="clear:both;width: 100%">
130 <?
131  foreach($this->bottomWidgets as $w) $w->drawWidget();
132 ?>
133  </div>
134  </div>
135 <?
136  }
$helpTree style
Definition: tree.inc:46

◆ left()

DashboardView::left (   $widget)

Definition at line 67 of file dashboard.inc.

68  {
69  $this->leftWidgets[] = $widget;
70  }

◆ right()

DashboardView::right (   $widget)

Definition at line 72 of file dashboard.inc.

73  {
74  $this->rightWidgets[] = $widget;
75  }

◆ top()

DashboardView::top (   $widget)

Definition at line 62 of file dashboard.inc.

63  {
64  $this->topWidgets[] = $widget;
65  }

◆ writeScript()

DashboardView::writeScript ( )

Definition at line 83 of file dashboard.inc.

84  {
85  $script = "";
86 
87  foreach($this->topWidgets as $w)
88  {
89  $script .= $w->writeScript();
90  }
91 
92  foreach($this->leftWidgets as $w)
93  {
94  $script .= $w->writeScript();
95  }
96 
97  foreach($this->rightWidgets as $w)
98  {
99  $script .= $w->writeScript();
100  }
101 
102  foreach($this->bottomWidgets as $w)
103  {
104  $script .= $w->writeScript();
105  }
106 
107  return $script;
108  }

Member Data Documentation

◆ $bottomWidgets

DashboardView::$bottomWidgets

Definition at line 50 of file dashboard.inc.

◆ $id

DashboardView::$id

Definition at line 51 of file dashboard.inc.

◆ $leftWidgets

DashboardView::$leftWidgets

Definition at line 48 of file dashboard.inc.

◆ $rightWidgets

DashboardView::$rightWidgets

Definition at line 49 of file dashboard.inc.

◆ $topWidgets

DashboardView::$topWidgets

Definition at line 47 of file dashboard.inc.


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