0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-23 17:01:51 +00:00
htmlpurifier/library/HTMLPurifier/IDAccumulator.php

21 lines
338 B
PHP
Raw Normal View History

<?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;
}
}
}
?>