Ejemplo n.º 1
0
 public function getAssists()
 {
     if (!$this->assists) {
         $this->assists = GameAction::getAll(array('game_nefub_id' => $this->game_nefub_id, 'assist_person_nefub_id' => $this->person_nefub_id), 'time');
     }
     return $this->assists;
 }
Ejemplo n.º 2
0
 /**
  * 
  * @return array
  */
 public function getGameActions($period = null)
 {
     $where = array('game_nefub_id' => $this->nefub_id);
     if ($period) {
         $where['period'] = $period;
     }
     return GameAction::getAll($where);
 }