1: <?php
2:
3: class QListBoxBase_CodeGenerator extends QListControl_CodeGenerator {
4: public function __construct($strControlClassName = 'QListBox') {
5: parent::__construct($strControlClassName);
6: }
7:
8: 9: 10: 11: 12: 13: 14: 15:
16: public function ConnectorCreateOptions(QCodeGenBase $objCodeGen, QSqlTable $objTable, $objColumn, $strControlVarName) {
17: $strRet = parent::ConnectorCreateOptions($objCodeGen, $objTable, $objColumn, $strControlVarName);
18:
19: if ($objColumn instanceof QManyToManyReference) {
20: $strRet .= <<<TMPL
21: \$this->{$strControlVarName}->SelectionMode = QSelectionMode::Multiple;
22:
23: TMPL;
24: }
25: return $strRet;
26: }
27: }