Location: PHPKode > projects > LDAPted > ldapted/includes/addons/Addon.php
<?php
/***************************************************************************
 *
 *                                   Addon.php
 *                              -------------------
 *
 *   begin                : Friday, Jul 5, 2002
 *   copyright            : (C) 2002 The Kabramps Team
 *   email                : hide@address.com,
 *                          hide@address.com
 *
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 *   See the GNU General Public License for more details.
 *   (http://www.gnu.org/licenses/gpl.html)
 *
 ***************************************************************************/

// include all subclasses:
include("ChangePassword.php");
include("Homedirectory.php");
include("Quota.php");
include("SearchList.php");
//include("ChooseList.php");

class Addon {
  
  function Addon ($type) {
    switch ($type) {
    case "homedirectory":
      $this = new Homedirectory ();
      break;
    case "changepassword":
      $this = new ChangePassword ();
      break;
    case "quota":
      $this = new Quota();
      break;
    case "searchlist":
      $this = new SearchList();
      break;
    case "chooselist":
      $this = new ChooseList();
      break;
    default:
      die("No valide Addon-Type selected");
      break;
    }
  }

  function get_view() {
    return "";
  }

  function onload() {
  }

  function get_jsfile() {
  }
}
?>
Return current item: LDAPted