コード例 #1
0
 /**
  * Render the settings form for this type.
  * Settings forms are expected to handle their own submissions and redirect to the appropriate page.
  * Otherwise, if the method exists, all $_REQUEST variables with the arrangement: HANDLE[]
  * in an array to the AuthenticationTypeController::saveTypeForm
  */
 public function renderTypeForm()
 {
     $type_form = $this->mapAuthenticationTypeFilePath('type_form.php');
     if ($type_form->exists()) {
         ob_start();
         $this->controller->edit();
         extract($this->controller->getSets());
         require_once $type_form->file;
         // We use the $this method to prevent extract overwrite.
         $out = ob_get_contents();
         ob_end_clean();
         echo $out;
     } else {
         echo "<p>" . t("This authentication type does not require any customization.") . "</p>";
     }
 }