Source for file ReferencedFieldSet.class.php

Documentation is available at ReferencedFieldSet.class.php

  1. <?php
  2.  
  3. require_once (dirname(__FILE__)."/FieldSetValidator.class.php");
  4.  
  5. /**
  6. * the ReferencedFieldSet holds a set of key=value pairs of data, where the value is passed by reference
  7. *
  8. * @package harmoni.utilities.fieldsetvalidator
  9. *
  10. * @copyright Copyright &copy; 2005, Middlebury College
  11. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  12. *
  13. * @version $Id: ReferencedFieldSet.class.php,v 1.4 2007/09/04 20:25:55 adamfranco Exp $
  14. */
  15. class ReferencedFieldSet extends FieldSet {
  16. /**
  17. * @param optional array $fields an associative array of key/value pairs to initialize with
  18. * @access public
  19. * @return void
  20. ***/
  21. function ReferencedFieldSet( $fields = null ) {
  22. $this->FieldSet($fields);
  23. }
  24. /**
  25. * sets the value associated with $key to $val
  26. *
  27. * @param string $key the key
  28. * @param ref mixed $val the value to set $key to
  29. * @access public
  30. * @return void
  31. ***/
  32. function set( $key, $val ) {
  33. $this->_fields[$key] = $val;
  34. }
  35. }
  36.  
  37. ?>

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