1: <?php
2: /**
3: * contains the QDataGridLegacy class
4: *
5: * @package Controls
6: * @filesource
7: */
8:
9:
10: /**
11: * QDataGridLegacy can help generate tables automatically with pagination. It can also be used to
12: * render data directly from database by using a 'DataSource'. The code-generated search pages you get for
13: * every table in your database are all QDataGrids.
14: *
15: * @deprecated
16: * @package Controls
17: */
18: class QDataGridLegacy extends QDataGridLegacyBase {
19: ///////////////////////////
20: // DataGrid Preferences
21: ///////////////////////////
22:
23: // Feel free to specify global display preferences/defaults for all QDataGridLegacy controls
24:
25: /**
26: * QDataGridLegacy::__construct()
27: *
28: * @param mixed $objParentObject The Datagrid's parent
29: * @param string $strControlId Control ID
30: *
31: * @throws QCallerException
32: * @return \QDataGridLegacy
33: */
34: public function __construct($objParentObject, $strControlId = null) {
35: try {
36: parent::__construct($objParentObject, $strControlId);
37: } catch (QCallerException $objExc) {
38: $objExc->IncrementOffset();
39: throw $objExc;
40: }
41:
42: // For example... let's default the CssClass to datagrid
43: $this->CssClass = 'datagrid';
44: }
45:
46: // Override any of these methods/variables below to alter the way the DataGrid gets rendered
47:
48: // protected function GetPaginatorRowHtml() {}
49:
50: // protected function GetHeaderRowHtml() {}
51:
52: // protected $blnShowFooter = true;
53: // protected function GetFooterRowHtml() {
54: // return sprintf('<tr><td colspan="%s" style="text-align: center">Some Footer Can Go Here</td></tr>', count($this->objColumnArray));
55: // }
56:
57: // protected function GetDataGridRowHtml($objObject) {}
58: }
59: