0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-11-14 01:08:41 +00:00
htmlpurifier/library/HTMLPurifier/IDAccumulator.php
2006-07-30 16:35:05 +00:00

21 lines
338 B
PHP

<?php
class HTMLPurifier_IDAccumulator
{
var $ids = array();
function add($id) {
if (isset($this->ids[$id])) return false;
return $this->ids[$id] = true;
}
function load($array_of_ids) {
foreach ($array_of_ids as $id) {
$this->ids[$id] = true;
}
}
}
?>