bracket_round.inc File Reference

Functions

 bracket_round_list_form ($form_state, $node)
 bracket_round_edit_form ($form_state, $node, $id)
 theme_bracket_round_edit_form ($form)
 bracket_round_edit_form_validate ($form_id, &$form_state)
 bracket_round_edit_form_match_key ($key)
 bracket_round_edit_form_submit ($form_id, &$form_state)
 bracket_round_check_tree (&$node, $ri, $mi, $comp)
 bracket_round_first_winner_round ($node)
 bracket_round_last_winner_round ($node)
 bracket_round_first_loser_round ($node)
 bracket_round_last_loser_round ($node)
 bracket_round_get_match_index ($node, $matchid)

Detailed Description

This file contains the round helper functions for the bracket module

Author:
Jim Bullington <jimb@jrbcs.com>

Function Documentation

bracket_round_check_tree ( &$  node,
ri,
mi,
comp 
)

Check bracket tree starting at given match and competitor Make sure competitor id is properly propagated in bracket tree

Parameters:
$node the node object
$ri the round index
$mi the match index
$comp the competitor index
bracket_round_edit_form ( form_state,
node,
id 
)

Round edit form

bracket_round_first_loser_round ( node  ) 

return the first loser round in the bracket

Parameters:
$node the node object
Returns:
the index of first loser round
bracket_round_first_winner_round ( node  ) 

Return the first winner match in the bracket - always one (1)

Parameters:
$node the node object
Returns:
the index of first winner round
bracket_round_get_match_index ( node,
matchid 
)

return the indexes to the given match id

Parameters:
$node the node object
$matchid the match id to search for
Returns:
round and match indexes as an associative array if the match id was found, otherwise false
bracket_round_last_loser_round ( node  ) 

return the last loser round in the bracket

Parameters:
$node the node object
Returns:
the index of last loser round
bracket_round_last_winner_round ( node  ) 

return the last winner round in the bracket

Parameters:
$node the node object
Returns:
the index of last winner round
bracket_round_list_form ( form_state,
node 
)

Display list of rounds for the given bracket node

 All Data Structures Files Functions Variables
Generated on Sat Jul 10 15:07:40 2010 by  doxygen 1.6.3