Exemplo n.º 1
0
 public function getSchoolByEspb($espb)
 {
     $schools = School::takeAll();
     foreach ($schools as $key => $school) {
         if (!in_array($espb, $school->trajanje)) {
             unset($schools[$key]);
         }
     }
     return array_values($schools);
 }