Class DateVersionConstraint

Description

Limits pruning based on a cutoff date, specified in the past. The date is passed to the constructor, and can be a specific date or a relative date, like "-2 weeks" or "-12 hours". Dates in the future will throw an error.

  • version: $Id: DateVersionConstraint.class.php,v 1.6 2007/09/04 20:25:33 adamfranco Exp $
  • license: GNU General Public License (GPL)
  • copyright: Copyright © 2005, Middlebury College

Located in /harmoni/core/dataManager/versionConstraints/DateVersionConstraint.class.php (line 17)

VersionConstraint
   |
   --DateVersionConstraint
Variable Summary
mixed $_cutoffDate
Method Summary
DateVersionConstraint DateVersionConstraint (mixed $relativeDateString)
void checkRecord (mixed $record)
void checkRecordFieldValue (mixed $value)
void checkTags (mixed $record)
Variables
mixed $_cutoffDate (line 19)
Methods
Constructor DateVersionConstraint (line 21)
DateVersionConstraint DateVersionConstraint (mixed $relativeDateString)
checkRecord (line 66)
void checkRecord (mixed $record)

Redefinition of:
VersionConstraint::checkRecord()
Takes a Record and returns if it is still valid or should be deleted. TRUE if it's still OK.
checkRecordFieldValue (line 36)
void checkRecordFieldValue (mixed $value)

Redefinition of:
VersionConstraint::checkRecordFieldValue()
Takes a RecordFieldValue object and sets "prune" flags for all versions based on whether it should be
checkTags (line 49)
void checkTags (mixed $record)

Redefinition of:
VersionConstraint::checkTags()
Takes a Record and checks all the tags to make sure none of them fail the constraints. If they do, it asks the RecordTagManager to delete them from the database.

Inherited Methods

Inherited From VersionConstraint

VersionConstraint::checkRecord()
VersionConstraint::checkRecordFieldValue()
VersionConstraint::checkTags()

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