Class NumberVersionConstraint

Description

Removes versions based on the number for a certain value stored in the database. The maximum number allowed is passed to the constructor, and any extra values will be deleted based on age.

  • version: $Id: NumberVersionConstraint.class.php,v 1.5 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/NumberVersionConstraint.class.php (line 16)

VersionConstraint
   |
   --NumberVersionConstraint
Variable Summary
mixed $_num
Method Summary
NumberVersionConstraint NumberVersionConstraint (mixed $num)
void checkRecord (mixed $record)
void checkRecordFieldValue (mixed $value)
void checkTags (mixed $record)
Variables
mixed $_num (line 18)
Methods
Constructor NumberVersionConstraint (line 20)
NumberVersionConstraint NumberVersionConstraint (mixed $num)
checkRecord (line 61)
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 24)
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 56)
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:25:17 -0400 by phpDocumentor 1.3.0RC3