public function bind(\Nethgui\Controller\RequestInterface $request) { parent::bind($request); if ($this->getRequest()->isMutation()) { $this->parameters['status'] = 'enabled'; } }
public function bind(\Nethgui\Controller\RequestInterface $request) { parent::bind($request); $extAddresses = $this->getExtAddresses(); if (count($extAddresses) > 0) { $this->parameters['Account'] = array_merge($this->parameters['Account']->getArrayCopy(), $extAddresses); } }
public function bind(\Nethgui\Controller\RequestInterface $request) { parent::bind($request); if ($request->isMutation()) { // save the old values for later usage: $this->originalAclRead = $this->getPlatform()->getDatabase('accounts')->getProp($this->parameters['ibay'], 'AclRead'); $this->originalAclWrite = $this->getPlatform()->getDatabase('accounts')->getProp($this->parameters['ibay'], 'AclWrite'); } }
public function bind(\Nethgui\Controller\RequestInterface $request) { parent::bind($request); if ($request->isMutation()) { if ($this->parameters['leftid'] === '') { $this->parameters['leftid'] = sprintf('@%s.local', $this->parameters['name']); } if ($this->parameters['rightid'] === '') { $this->parameters['rightid'] = sprintf('@%s.remote', $this->parameters['name']); } } }
public function bind(\Nethgui\Controller\RequestInterface $request) { parent::bind($request); $groupsAdapter = new MembershipAdapter($this->parameters['username'], $this->getPlatform()); $this->declareParameter('Groups', Validate::USERNAME_COLLECTION, $groupsAdapter); $this->declareParameter('GroupsDatasource', FALSE, array($groupsAdapter, 'provideGroupsDatasource')); /* * Having declared Groups parameter after "bind()" call we now perform * the value assignment by hand. */ if ($request->isMutation() && $request->hasParameter('Groups')) { $this->parameters['Groups'] = $request->getParameter('Groups'); } }
public function bind(\Nethgui\Controller\RequestInterface $request) { $this->setCreateDefaults(array('expires' => $this->getPlatform()->getDatabase('configuration')->getProp('passwordstrength', 'PassExpires'))); parent::bind($request); }