Source for file object_config.php

Documentation is available at object_config.php

  1. <?php
  2.     /**
  3.     * Access checker 1.0 configuration form.
  4.     *
  5.     * This is a fragment of HTML which gives the form elements for configuration of an access checker object, v1.0.
  6.     * ONLY the basic form elements should be included.
  7.     * The "form" tags and submit button are already specified outside.
  8.     * The $auth_obj and $sloodleauthid variables will identify the object being configured.
  9.     *
  10.     * @package sloodle
  11.     * @copyright Copyright (c) 2008 Sloodle (various contributors)
  12.     * @license http://www.gnu.org/licenses/gpl-3.0.html GNU GPL v3
  13.     *
  14.     * @contributor Peter R. Bloomfield
  15.     *
  16.     */
  17.     
  18.     // IMPORTANT: make sure this is called from within a Sloodle script
  19.     if (!defined('SLOODLE_VERSION')) {
  20.         error('Not called from within a Sloodle script.');
  21.         exit();
  22.     }
  23.     
  24.     // Execute everything within a function to ensure we don't mess up the data in the other file
  25.     sloodle_display_config_form($sloodleauthid$auth_obj);
  26.     
  27.     
  28.     
  29.     function sloodle_display_config_form($sloodleauthid$auth_obj)
  30.     {
  31.     //--------------------------------------------------------
  32.     // SETUP
  33.         
  34.         // None
  35.         
  36.     //--------------------------------------------------------
  37.     // FORM
  38.     
  39.         // Get the current object configuration
  40.         $settings SloodleController::get_object_configuration($sloodleauthid);
  41.         
  42.     ///// GENERAL CONFIGURATION /////
  43.         
  44.         // None
  45.         
  46.         
  47.     ///// ACCESS LEVELS /////
  48.         sloodle_print_access_level_options($settingstruefalsefalse);
  49.         
  50.     }
  51.     
  52. ?>

Documentation generated on Mon, 16 Jun 2008 15:56:54 +0100 by phpDocumentor 1.4.0