'startDow' => $this->startDow
);
- $cronjobAction = new CronjobAction(array(), 'create', array('data' => $data));
- $cronjobAction->executeAction();
+ $this->objectAction = new CronjobAction(array(), 'create', array('data' => $data));
+ $this->objectAction->executeAction();
$this->saved();
// reset values
'startDow' => $this->startDow
);
- $cronjobAction = new CronjobAction(array($this->cronjobID), 'update', array('data' => $data));
- $cronjobAction->executeAction();
+ $this->objectAction = new CronjobAction(array($this->cronjobID), 'update', array('data' => $data));
+ $this->objectAction->executeAction();
$this->saved();
// save options
$saveOptions = $this->optionHandler->save('wcf.acp.option', 'wcf.acp.option.option');
- $optionAction = new OptionAction(array(), 'updateAll', array('data' => $saveOptions));
- $optionAction->executeAction();
+ $this->objectAction = new OptionAction(array(), 'updateAll', array('data' => $saveOptions));
+ $this->objectAction->executeAction();
$this->saved();
// show succes message
parent::save();
// save
- $optionAction = new OptionAction(array(), 'import', array('data' => $this->options));
- $optionAction->executeAction();
+ $this->objectAction = new OptionAction(array(), 'import', array('data' => $this->options));
+ $this->objectAction->executeAction();
$this->saved();
// show success message
parent::save();
// save server
- $updateServerAction = new PackageUpdateServerAction(array(), 'create', array('data' => array(
+ $this->objectAction = new PackageUpdateServerAction(array(), 'create', array('data' => array(
'serverURL' => $this->serverURL,
'loginUsername' => $this->loginUsername,
'loginPassword' => $this->loginPassword
)));
- $updateServer = $updateServerAction->executeAction();
+ $this->objectAction->executeAction();
$this->saved();
// reset values
AbstractForm::save();
// save server
- $updateServerAction = new PackageUpdateServerAction(array($this->packageUpdateServerID), 'update', array('data' => array(
+ $this->objectAction = new PackageUpdateServerAction(array($this->packageUpdateServerID), 'update', array('data' => array(
'serverURL' => $this->serverURL,
'loginUsername' => $this->loginUsername,
'loginPassword' => $this->loginPassword
)));
- $updateServerAction->executeAction();
+ $this->objectAction->executeAction();
$this->saved();
// show success message
'languages' => $this->visibleLanguages,
'options' => $saveOptions
);
- $userAction = new UserAction(array(), 'create', $data);
- $userAction->executeAction();
+ $this->objectAction = new UserAction(array(), 'create', $data);
+ $this->objectAction->executeAction();
$this->saved();
// show empty add form
'languages' => $this->visibleLanguages,
'options' => $saveOptions
);
- $userAction = new UserAction(array($this->userID), 'update', $data);
- $userAction->executeAction();
+ $this->objectAction = new UserAction(array($this->userID), 'update', $data);
+ $this->objectAction->executeAction();
$this->saved();
'data' => array_merge($this->additionalFields, array('groupName' => $this->groupName)),
'options' => $saveOptions
);
- $groupAction = new UserGroupAction(array(), 'create', $data);
- $groupAction->executeAction();
+ $this->objectAction = new UserGroupAction(array(), 'create', $data);
+ $this->objectAction->executeAction();
if (!I18nHandler::getInstance()->isPlainValue('groupName')) {
$returnValues = $groupAction->getReturnValues();
'data' => array_merge(array('groupName' => $this->groupName), $this->additionalFields),
'options' => $saveOptions
);
- $groupAction = new UserGroupAction(array($this->groupID), 'update', $data);
- $groupAction->executeAction();
+ $this->objectAction = new UserGroupAction(array($this->groupID), 'update', $data);
+ $this->objectAction->executeAction();
$this->saved();
// show success message
*/
public $errorType = '';
+ /**
+ * database object action
+ * @var wcf\data\AbstractDatabaseObjectAction
+ */
+ public $objectAction = null;
+
/**
* @see wcf\form\IForm::submit()
*/