Closed GoogleCodeExporter closed 9 years ago
These properties would help you:
Boolean:
$is_dead
$is_sold
$is_mng - This will handle all your injured statuses.
I don't think you need these, but here are the specific injuries as an integer:
$inj_ma,$inj_st,$inj_ag,$inj_av,$inj_ni
$owned_by_team_id will get you the team id and then you can create the team
object to get the name of the team.
Original comment by funnyfin...@hotmail.com
on 19 Jan 2011 at 10:14
$team = new Team($player->owned_by_team_id);
echo $team->name
...will give you the team's name.
Original comment by Nimda...@gmail.com
on 20 Jan 2011 at 10:58
Splitting hairs, but just want to say $p as opposed to $player in this case,
right?
Original comment by funnyfin...@hotmail.com
on 20 Jan 2011 at 6:00
The above does not look like player objects.
Instead use $p['owned_by_team_id'] for team ID.
Original comment by Nimda...@gmail.com
on 6 Feb 2011 at 11:51
Yeah I've had it working to pull up any data on the players table.
The problem I am still having is I can not figure out how to pull up data from
the teams table that goes with the player being analyzed.
Mainly if teams->retired = 1 then it assumes player is also retired.
No amount of using the above logic and my own crazy combinations have I managed
to get that section to pull up the team's retired status.
Original comment by meini...@gmail.com
on 8 Feb 2011 at 3:22
Try
$team = new Team($p['owned_by_team_id']);
echo $team->is_retired ? 'retired' : 'NOT retired';
...?
Original comment by Nimda...@gmail.com
on 8 Feb 2011 at 12:55
Original comment by Nimda...@gmail.com
on 9 Mar 2011 at 10:50
Original comment by Nimda...@gmail.com
on 23 Mar 2011 at 4:07
Original issue reported on code.google.com by
meini...@gmail.com
on 16 Jan 2011 at 8:26