Source for file AnonymousAgent.class.php

Documentation is available at AnonymousAgent.class.php

  1. <?php
  2.  
  3. require_once(dirname(__FILE__)."/HarmoniAgent.class.php");
  4.  
  5. /**
  6. * The AnonymousAgent has Id "0" and can refer to a non-logged in user.
  7. *
  8. * <p>
  9. * OSID Version: 2.0
  10. * </p>
  11. *
  12. * @package harmoni.osid_v2.agent
  13. *
  14. * @copyright Copyright &copy; 2005, Middlebury College
  15. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  16. *
  17. * @version $Id: AnonymousAgent.class.php,v 1.5 2007/09/13 16:04:17 adamfranco Exp $
  18. */
  19. class AnonymousAgent
  20. extends HarmoniAgent
  21. {
  22. /**
  23. * Constructor
  24. *
  25. * @param integer dbIndex The database connection as returned by the DBHandler.
  26. * @return object
  27. * @access public
  28. * @since 2/8/05
  29. */
  30. function AnonymousAgent ($dbIndex) {
  31. $idManager = Services::getService("Id");
  32. $id =$idManager->getId("edu.middlebury.agents.anonymous");
  33. $type = new Type("Agents", "edu.middlebury.harmoni", "Any/Anonymous",
  34. _("Special users that can represent anyone or unknown users."));
  35. $propertiesArray = array();
  36. // $propertiesType = new HarmoniType('Agents', 'Harmoni', 'Agent Properties',
  37. // 'Properties known to the Harmoni Agents System.');
  38. // $propertiesArray[0] = new HarmoniProperties($propertiesType);
  39. $this->HarmoniAgent( _("Anonymous"),
  40. $id,
  41. $type,
  42. $propertiesArray,
  43. $dbIndex);
  44. }
  45. }
  46.  
  47.  
  48. ?>

Documentation generated on Wed, 19 Sep 2007 10:21:29 -0400 by phpDocumentor 1.3.0RC3