* @copyright 1997-2005 The PHP Group * @license http://www.gnu.org/copyleft/lesser.html LGPL * @version CVS: $Id: Current.php,v 1.1 2005/05/28 23:17:28 vincentlascaux Exp $ * @link http://pear.php.net/package/File_Archive */ require_once "File/Archive/Predicate.php"; /** * Evaluates to true only once, and then always to false */ class File_Archive_Predicate_Current extends File_Archive_Predicate { var $value = true; /** * @see File_Archive_Predicate::isTrue() */ function isTrue(&$source) { $tmp = $this->value; $this->value = false; return $tmp; } } ?>