Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $rejectlist = $teb->applyTEBProfiles();
- /**
- * If there are any teb rejections we should process with the status
- */
- if(!empty($rejectlist))
- {
- /**
- * Intersect tells us which of allowed schools have been teb rejected
- * Diff tells us whether there are any schools allowed after teb filtering
- */
- $statusArray = array_diff($allowedSchools, array_intersect($allowedSchools, $rejectlist));
- /**
- * If all schools have been rejected by teb filter we need to add this to the return status
- */
- if(empty($statusArray))
- {
- $this->addStatus(self::STATUS_TEB_REJECTED);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement