Source for file NonReferenceProperties.class.php

Documentation is available at NonReferenceProperties.class.php

  1. <?php
  2.  
  3. require_once(HARMONI."oki2/shared/HarmoniProperties.class.php");
  4. require_once(HARMONI."oki2/shared/ConfigurationPropertiesType.class.php");
  5.  
  6.  
  7. /**
  8. * Properties that can be added to without doing so by reference. Useful
  9. * for building Properties of strings, integers, etc.
  10. *
  11. * <p>
  12. * OSID Version: 2.0
  13. * </p>
  14. *
  15. * @package harmoni.osid_v2.shared
  16. *
  17. * @copyright Copyright &copy; 2005, Middlebury College
  18. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  19. *
  20. * @version $Id: NonReferenceProperties.class.php,v 1.2 2007/04/12 15:37:33 adamfranco Exp $
  21. */
  22. class NonReferenceProperties
  23. extends HarmoniProperties
  24. {
  25.  
  26. /**
  27. * Add a Property to these Properties.
  28. *
  29. * WARNING: NOT IN OSID - This method is not in the OSIDs as of version 2.0
  30. * Use at your own risk
  31. *
  32. * @param mixed $key
  33. * @param mixed $value
  34. * @return void
  35. * @access public
  36. * @since 11/18/04
  37. */
  38. function addProperty ( $key, $value ) {
  39. $this->_properties[serialize($key)] = $value;
  40. }
  41. }

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