Source for file VersionConstraint.interface.php

Documentation is available at VersionConstraint.interface.php

  1. <?php
  2.  
  3. /**
  4. * A VersionConstraint specifies, upon {@link FullDataSet::prune()}, what values to actually prune, and which to
  5. * keep, what {@link DataSetTag}s to keep, and if the whole DataSets should be deleted or not.
  6. *
  7. * @package harmoni.datamanager.versionconstraint
  8. *
  9. * @copyright Copyright &copy; 2005, Middlebury College
  10. * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
  11. *
  12. * @version $Id: VersionConstraint.interface.php,v 1.6 2007/09/04 20:25:33 adamfranco Exp $
  13. */
  14. class VersionConstraint {
  15. /**
  16. * Takes a {@link RecordFieldValue} object and sets "prune" flags for all versions based on whether it should be
  17. * pruned from the database or not, depending on the constraint specified in this object. If the version
  18. * is active, though, nothing is done!
  19. * @param ref object $value A {@link RecordFieldValue} object.
  20. * @return void
  21. */
  22. function checkRecordFieldValue($value) { }
  23. /**
  24. * Takes a {@link Record} and checks all the tags to make sure
  25. * none of them fail the constraints. If they do, it asks the {@link RecordTagManager} to delete
  26. * them from the database.
  27. * @param ref object $record
  28. * @return void
  29. */
  30. function checkTags($record) { }
  31. /**
  32. * Takes a {@link Record} and returns if it is still valid or should be deleted. TRUE if it's still OK.
  33. * NOTE: if a Record is flagged for deletion and the children are not, then
  34. * there's gonna be broken data in the database.
  35. * @param ref object $record
  36. * @return bool
  37. * @deprecated no longer used - Jul 13, 2005
  38. */
  39. function checkRecord($record) { }
  40. }

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