SyncRuleForm: cleanup

This commit is contained in:
Thomas Gelf 2015-11-02 10:36:10 +01:00
parent 2e746e68c1
commit f1c7509d5c

View File

@ -37,44 +37,26 @@ class SyncRuleForm extends DirectorObjectForm
'label' => $this->translate('Update Policity'),
'description' => $this->translate('Whether the field should be merged, overriden or ignored'),
'required' => true,
'multiOptions' => array(
'null' => '- please choose -',
'multiOptions' => $this->optionalEnum(array(
'merge' => 'merge',
'override' => 'override',
'ignore' => 'ignore'
)
))
));
$this->addElement('select', 'purge_existing', array(
'label' => $this->translate('Purge'),
'description' => $this->translate('Purge existing values.'),
'required' => true,
'multiOptions' => array(
'null' => '- please choose -',
'multiOptions' => $this->optionalEnum(array(
'y' => 'yes',
'n' => 'no'
)
))
));
$this->addElement('text', 'filter_expression', array(
'label' => $this->translate('Filter Expression'),
'description' => $this->translate('This allows to filter for specific parts.'),
'description' => $this->translate('This allows to filter for specific parts'),
));
}
public function loadObject($id)
{
parent::loadObject($id);
return $this;
}
public function onSuccess()
{
/*
$this->getElement('owner')->setValue(
self::username()
);
*/
parent::onSuccess();
}
}