/** * @see SmsProviderConfigureForm::getActiveFormElement() */ public function getActiveFormElement($activeForm = null, $attributeName = null) { if ($activeForm == null || $attributeName == null) { return null; } switch ($attributeName) { case 'username_clickatell': return $activeForm->textField($this, 'username_clickatell', array('class' => 'form-control')); case 'password_clickatell': return $activeForm->passwordField($this, 'password_clickatell', array('class' => 'form-control')); case 'apiid_clickatell': return $activeForm->textField($this, 'apiid_clickatell', array('class' => 'form-control')); default: return parent::getActiveFormElement($activeForm, $attributeName); } }
/** * Offers a proper ActiveFormField for each form field by its name. * * @see SmsProviderConfigureForm::getActiveFormElement() */ public function getActiveFormElement($activeForm = null, $attributeName = null) { if ($activeForm == null || $attributeName == null) { return null; } switch ($attributeName) { case 'username_anysms': return $activeForm->textField($this, 'username_anysms', array('class' => 'form-control')); case 'password_anysms': return $activeForm->passwordField($this, 'password_anysms', array('class' => 'form-control')); case 'gateway_anysms': return $activeForm->textField($this, 'gateway_anysms', array('class' => 'form-control')); case 'test_anysms': return $activeForm->checkBox($this, 'test_anysms', array('class' => 'form-control')); default: return parent::getActiveFormElement($activeForm, $attributeName); } }
/** * @see SmsProviderConfigureForm::getActiveFormElement() */ public function getActiveFormElement($activeForm = null, $attributeName = null) { if ($activeForm == null || $attributeName == null) { return null; } switch ($attributeName) { case 'username_spryng': return $activeForm->textField($this, 'username_spryng', array('class' => 'form-control')); case 'password_spryng': return $activeForm->passwordField($this, 'password_spryng', array('class' => 'form-control')); case 'route_spryng': return $activeForm->textField($this, 'route_spryng', array('class' => 'form-control')); case 'service_spryng': return $activeForm->textField($this, 'service_spryng', array('class' => 'form-control')); case 'allowlong_spryng': return $activeForm->checkBox($this, 'allowlong_spryng', array('class' => 'form-control')); default: return parent::getActiveFormElement($activeForm, $attributeName); } }