Lines Matching refs:provider
116 * Handle POSTs for provider forms
131 if (!$INPUT->has('provider')) return true;
133 if (!isset($providers[$INPUT->str('provider')])) return true;
134 $provider = $providers[$INPUT->str('provider')];
137 $provider->reset();
143 $manager->setUserDefaultProvider($provider);
147 if (!$provider->isConfigured()) {
148 $provider->handleProfileForm();
149 return $provider->isConfigured(); // redirect only if configuration finished
190 * Print the form where a user can select their default provider
204 foreach ($userproviders as $provider) {
205 $el = $form->addRadioButton('provider', $provider->getLabel())->val($provider->getProviderID());
206 if ($provider->getProviderID() === $default->getProviderID()) {
208 $el->getLabel()->val($provider->getLabel() . ' ' . $this->getLang('default'));
234 foreach ($available as $provider) {
235 $options[$provider->getProviderID()] = $provider->getLabel();
242 $form->addDropdown('provider', $options, $this->getLang('provider'));
253 * Display the setup form for a provider
262 $providerID = $INPUT->str('provider');
265 $provider = $providers[$providerID];
267 $form = new Form(['method' => 'POST', 'class' => 'provider-' . $providerID]);
270 $form->setHiddenField('provider', $provider->getProviderID());
272 $form->addFieldsetOpen($provider->getLabel());
273 $provider->renderProfileForm($form);