function checkRequirement(am4AccessRequirement $r) { foreach ($this->getRecords() as $a) { if ($r->checkAccess($a)) { return true; } } return false; }