1: <?php
2: /**
3: * contains the QDataGrid class
4: *
5: * @package Controls
6: * @filesource
7: */
8:
9:
10: /**
11: * QDataGrid 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: * @package Controls
16: */
17: class QDataGrid extends QDataGridBase {
18: // Feel free to specify global display preferences/defaults for all QDataGrid controls
19:
20: /**
21: * QDataGrid::__construct()
22: *
23: * @param mixed $objParentObject The Datagrid's parent
24: * @param string $strControlId Control ID
25: *
26: * @throws QCallerException
27: * @return \QDataGrid
28: */
29: public function __construct($objParentObject, $strControlId = null) {
30: try {
31: parent::__construct($objParentObject, $strControlId);
32: } catch (QCallerException $objExc) {
33: $objExc->IncrementOffset();
34: throw $objExc;
35: }
36:
37: $this->CssClass = 'datagrid';
38: }
39: }
40: