Bug #30415 » class.tx_em_connection_extdirectserver.php.diff
class.tx_em_connection_extdirectserver_new.php 2011-09-26 14:20:38.248663235 +0200 | ||
---|---|---|
* @param array $parameter
|
||
* @return array
|
||
*/
|
||
public function settingsFormSubmit($parameter) {
|
||
$settings = $this->getSettingsObject()->saveSettings(array(
|
||
'display_unchecked' => isset($parameter['display_unchecked']),
|
||
'fe_u' => $parameter['fe_u'],
|
||
'fe_p' => $parameter['fe_p'],
|
||
'selectedMirror' => $parameter['selectedMirror'],
|
||
'selectedRepository' => $parameter['selectedRepository'],
|
||
));
|
||
return array(
|
||
'success' => TRUE,
|
||
'data' => $parameter,
|
||
'settings' => $settings
|
||
);
|
||
}
|
||
public function settingsFormSubmit($parameter) {
|
||
|
||
$selectedRepository = $this->getSelectedRepository();
|
||
|
||
$objRepository = t3lib_div::makeInstance('tx_em_Repository', $selectedRepository['uid']);
|
||
$objRepositoryUtility = t3lib_div::makeInstance('tx_em_Repository_Utility', $objRepository);
|
||
$mirrors = $objRepositoryUtility->getMirrors(TRUE)->getMirrors();
|
||
|
||
$settings = $this->getSettingsObject()->saveSettings(array(
|
||
'display_unchecked' => isset($parameter['display_unchecked']),
|
||
'fe_u' => $parameter['fe_u'],
|
||
'fe_p' => $parameter['fe_p'],
|
||
'selectedMirror' => $parameter['selectedMirror'],
|
||
'selectedRepository' => $parameter['selectedRepository'],
|
||
'extMirrors' => serialize($mirrors)
|
||
));
|
||
return array(
|
||
'success' => TRUE,
|
||
'data' => $parameter,
|
||
'settings' => $settings
|
||
);
|
||
}
|
||
|
||
|
||
|
||
/*********************************************************************/
|