1: <?php
2:
3: class QRadioButtonListBase_CodeGenerator extends QListControl_CodeGenerator {
4: public function __construct($strControlClassName = 'QRadioButtonList') {
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: $objCodeGen->ReportError($objTable->Name . ':' . $objColumn->Name . ' is not compatible with a QRadioButtonList.');
21: }
22:
23: return $strRet;
24: }
25: }