getConfig('mode'); if (Module::MODE_SIMPLE == $mode) { $this->_initSimpleElements(); } else if (Module::MODE_ASSOCIATION == $mode) { $this->_initAssociationElements(); } else { throw new Qs_Exception('Unknown module mode.'); } $this->getElement('password')->setDescription('Leave blank to keep current password unchanged'); $this->getElement('confirmPassword')->setDescription('Leave blank to keep current password unchanged'); return $this; } protected function _initAssociationElements() { $this->_initIndividualFields(true); $this->_initCheckoutFields(false); return $this; } protected function _showDisplayGroupLegend($elementName, $legend) { // не треба виводити ніякої легенди return $this; } }