2006-08-12 16:04:40 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal data-structure used in attribute validation to accumulate state.
|
|
|
|
*
|
2006-09-17 21:59:40 +00:00
|
|
|
* This is a data-structure that holds objects that accumulate state, like
|
|
|
|
* HTMLPurifier_IDAccumulator. It's better than using globals!
|
2006-08-17 20:29:34 +00:00
|
|
|
*
|
2006-09-17 21:59:40 +00:00
|
|
|
* @note Many functions that accept this object have it as a mandatory
|
|
|
|
* parameter, even when there is no use for it. Though this is
|
|
|
|
* for the same reasons as why HTMLPurifier_Config is a mandatory
|
|
|
|
* parameter, it is also because you cannot assign a default value
|
|
|
|
* to a parameter passed by reference (passing by reference is essential
|
|
|
|
* for context to work in PHP 4).
|
2006-08-12 16:04:40 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class HTMLPurifier_AttrContext
|
|
|
|
{
|
2006-08-17 20:29:34 +00:00
|
|
|
/**
|
|
|
|
* Contains an HTMLPurifier_IDAccumulator, which keeps track of used IDs.
|
|
|
|
* @public
|
|
|
|
*/
|
2006-08-12 16:04:40 +00:00
|
|
|
var $id_accumulator;
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|