Exemplo n.º 1
0
 public function load_kills($args = False)
 {
     $this->kills = KillContainer::find_by_game($this, $args);
     return $this;
 }
Exemplo n.º 2
0
 public function find_by_game(\Trouble\Game $game, $limit = 20)
 {
     $items = \Core\Storage::container()->get_storage('Kill')->fetch(array("joins" => KillContainer::_standard_joins(), "filter" => new \Core\Filter("game", $game['id'])));
     $kills = Kill::mapper()->get_list($items);
     return $kills;
 }