Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.62 KB | None | 0 0
  1. $rejectlist = $teb->applyTEBProfiles();
  2.  
  3. /**
  4.  * If there are any teb rejections we should process with the status
  5.  */
  6. if(!empty($rejectlist))
  7. {
  8.     /**
  9.      * Intersect tells us which of allowed schools have been teb rejected
  10.      * Diff tells us whether there are any schools allowed after teb filtering
  11.      */
  12.     $statusArray = array_diff($allowedSchools, array_intersect($allowedSchools, $rejectlist));
  13.    
  14.     /**
  15.      * If all schools have been rejected by teb filter we need to add this to the return status
  16.      */
  17.     if(empty($statusArray))
  18.     {
  19.         $this->addStatus(self::STATUS_TEB_REJECTED);
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement