1: <?php
2: 3: 4: 5: 6:
7:
8: class QDropZoneGrouping extends QControlGrouping {
9: protected $blnAllowSelf;
10: protected $blnAllowSelfParent;
11:
12: public function __construct(QForm $objForm, $strGroupingId, $blnAllowSelfParent = false, $blnAllowSelf = false) {
13: parent::__construct($objForm, $strGroupingId);
14: $this->blnAllowSelf = $blnAllowSelf;
15: $this->blnAllowSelfParent = $blnAllowSelfParent;
16: }
17:
18:
19: public function Render() {
20: if ($this->blnModified) {
21: $strToReturn = '';
22: foreach ($this->objControlArray as $objControl) {
23: if ($objControl->Rendered)
24:
25: $strToReturn .= sprintf('qc.getW("%s").a2DZG("%s", %s, %s); ',
26: $objControl->ControlId, $this->strGroupingId,
27: ($this->blnAllowSelf) ? '1' : '0',
28: ($this->blnAllowSelfParent) ? '1' : '0');
29: }
30: $this->blnModified = false;
31:
32: return $strToReturn;
33: }
34: }
35: }