示例#1
0
function select_games($criteria = array(), $order_by = NULL, $ascending = true)
{
    return select_entries("game", array("id", "date", "my_player"), array(), array(), $criteria, $order_by, $ascending);
}
示例#2
0
function select_types($criteria = array(), $order_by = NULL, $ascending = true)
{
    return select_entries("type", array("id", "name"), array(), array(), $criteria, $order_by, $ascending);
}
示例#3
0
function select_turns($criteria = array(), $order_by = "", $ascending = true)
{
    set_if_not_set($criteria["game"], game);
    return select_entries("turn", array("id", "player", "room", "weapon", "suspect", "witness", "evidence", "game"), array(), array(), $criteria, $order_by, $ascending);
}