public function initialize()
 {
     $this->setSchemaAddition(array(array('UnknownRecipientsActionType', $this->createValidator()->memberOf('bounce', 'deliver'), Table::FIELD), array('UnknownRecipientsActionDeliverMailbox', Validate::EMAIL, Table::FIELD), array('AlwaysBccStatus', Validate::SERVICESTATUS, Table::FIELD), array('AlwaysBccAddress', Validate::EMAIL, Table::FIELD)));
     $this->setDefaultValue('UnknownRecipientsActionType', 'bounce');
     $this->setDefaultValue('AlwaysBccStatus', 'disabled');
     parent::initialize();
 }
 public function prepareView(\Nethgui\View\ViewInterface $view)
 {
     parent::prepareView($view);
     if ($this->hasAdapter()) {
         $view['MailAddressList'] = new \NethServer\Module\Pseudonym\AccountPseudonymIterator($this->getAdapter()->getKeyValue(), $this->getPlatform());
         if ($this->getPluggableActionIdentifier() === 'create') {
             $view['CreateMailAddresses'] = 'enabled';
         }
     }
 }
Esempio n. 3
0
 public function prepareView(\Nethgui\View\ViewInterface $view)
 {
     parent::prepareView($view);
     if ($view['profileName'] === '') {
         $view['profileName'] = 'default';
     }
     unset($view['SmbProfileType']);
 }
 public function initialize()
 {
     $this->setSchemaAddition(array(array('PassExpires', $this->createValidator()->memberOf('yes', 'no'), Table::FIELD)));
     $this->setDefaultValue('PassExpires', 'yes');
     parent::initialize();
 }
 public function initialize()
 {
     $this->setSchemaAddition(array(array('RelayHost', Validate::HOSTNAME, Table::FIELD)));
     parent::initialize();
 }
Esempio n. 6
0
 public function prepareView(\Nethgui\View\ViewInterface $view)
 {
     parent::prepareView($view);
     $view['VirtualHostDatasource'] = array_merge(array(array('__ANY__', $view->translate('ANY_VHOST'))), $this->getVirtualHostDatasource());
 }
Esempio n. 7
0
 public function initialize()
 {
     $this->setSchemaAddition(array(array('Samba', Validate::SERVICESTATUS, Table::FIELD)));
     $this->setDefaultValue('Samba', 'enabled');
     parent::initialize();
 }