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';
         }
     }
 }
Пример #2
0
 public function prepareView(\Nethgui\View\ViewInterface $view)
 {
     parent::prepareView($view);
     if ($view['profileName'] === '') {
         $view['profileName'] = 'default';
     }
     unset($view['SmbProfileType']);
 }
Пример #3
0
 public function prepareView(\Nethgui\View\ViewInterface $view)
 {
     parent::prepareView($view);
     $view['VirtualHostDatasource'] = array_merge(array(array('__ANY__', $view->translate('ANY_VHOST'))), $this->getVirtualHostDatasource());
 }