Example #1
0
 /**
  * {@inheritdoc}
  */
 public function getLapsSortedBySector($sector)
 {
     // There is cache
     if (array_key_exists($sector, $this->cache_laps_sorted_by_sector)) {
         return $this->cache_laps_sorted_by_sector[$sector];
     }
     // Return sorted laps and cache it
     return $this->cache_laps_sorted_by_sector[$sector] = parent::getLapsSortedBySector($sector);
 }