public function remove($req) { if (is_string($req)) { parent::remove($req); } else { if ($req instanceof \org\jecat\framework\ui\xhtml\AttributeValue) { $this->removeByValue($req); // anonymous attribute $key = array_search($req, $this->arrAnonymous); if ($key !== false) { unset($this->arrAnonymous[$key]); } } else { Type::check(array('string', __NAMESPACE__ . '\\AttributeValue'), $req); } } }