Changeset 236
- Timestamp:
- 01/06/08 22:35:12 (1 year ago)
- Files:
-
- trunk/Framework/Module/Main/AliasDomain.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Framework/Module/Main/AliasDomain.php
r232 r236 47 47 * Display add form 48 48 * 49 * @param object $form HTML_QuickForm object, default null 50 * 49 51 * @access public 50 52 * @return void 51 53 */ 52 public function add( )54 public function add($form = null) 53 55 { 54 $this->setData('addForm', $this->_addForm()->toHtml()); 56 if (is_null($form)) { 57 $form = $this->_addForm(); 58 } 59 $this->_renderForm($form); 55 60 $this->tplFile = 'addAliasDomain.tpl'; 56 61 return; … … 68 73 $form = $this->_addForm(); 69 74 if (!$form->validate()) { 70 return $this->add( );75 return $this->add($form); 71 76 } 72 77 $domain = $form->getElementValue('domain'); … … 79 84 } catch (Net_Vpopmaild_Exception $e) { 80 85 $this->setData('message', _('Error:') . $e->getMessage()); 81 return $this->add( );86 return $this->add($form); 82 87 } 83 88 … … 111 116 return $form; 112 117 } 118 119 private function _renderForm($form) 120 { 121 $this->setData('addForm', $form->toHtml()); 122 } 113 123 } 114 124 ?>
