Пример #1
0
 public function process()
 {
     parent::process();
     if ($this->getRequest()->isMutation()) {
         if ($this->getAdapter()->offsetExists('LeaseStatus')) {
             $this->getAdapter()->offsetUnset('LeaseStatus');
         }
     }
 }
Пример #2
0
 public function process()
 {
     if ($this->getRequest()->isMutation() && $this->getIdentifier() === 'create') {
         // always enable HTTPS
         $this->parameters['HTTPS'] = 'yes';
     }
     if ($this->getRequest()->isMutation()) {
         $this->parameters['ValidFrom'] = implode(', ', preg_split('/\\s*,\\s*/', $this->parameters['ValidFrom']));
     }
     parent::process();
 }
 public function process()
 {
     if ($this->getRequest()->isMutation()) {
         // Expand the member list of each group
         $groupProvider = new \NethServer\Tool\GroupProvider($this->getPlatform());
         $groupList = $groupProvider->getGroups();
         $destinations = array();
         foreach ($this->parameters['Account'] as $destination) {
             if (in_array($destination, array_keys($groupList))) {
                 $destinations = array_merge($destinations, $groupList[$destination]['members']);
             } else {
                 $destinations[] = $destination;
             }
         }
         $this->parameters['Account'] = array_unique($destinations);
     }
     parent::process();
 }
Пример #4
0
 public function process()
 {
     parent::process();
 }