public static function teamManagementBox($teamId) { $team = new self($teamId); $ALLOW_EDIT = $team->allowEdit(); # Show team action boxes? $DETAILED = isset($_GET['detailed']) && $_GET['detailed'] == 1; # Detailed roster view? $team->handleActions($ALLOW_EDIT); # Handles any actions/request sent. list($players, $players_backup) = $team->_loadPlayers($DETAILED); # Should come after handleActions(). $team->_teamManagementBox($players, $team); }