public function unserialize($data)
{
$save = @unserialize($data);
$this->duplicates = !empty($save['d']);
$this->_sequence = !empty($save['s']);
$this->_sorted = !empty($save['is']);
if (isset($save['a'])) {
$this->_ids = self::ALL;
} elseif (isset($save['l'])) {
$this->_ids = self::LARGEST;
} elseif (isset($save['sr'])) {
$this->_ids = self::SEARCH_RES;
} elseif (isset($save['i'])) {
$this->add($save['i']);
}
}