- Fixes a very silly mistake from the previous patch in which I set the curl options AFTER executing the request
- Forces curl to use TLSv1.2 for cURL calls
-
Adds
BBMap::Load()
- Allows loading a map by map_id
-
Adds support for the new tournament map_pool services
$tournament->map_pool
to fetch the map pool$tournament->add_map()
to add a map$tournament->remove_map()
to remove a map
- Adds
$tournament->played_matches($freewins = false, $stream = false)
- Returns array of recently reported BBMatch objects
- Set
$stream = true
and it will only return each match result once
- Set
- Returns array of recently reported BBMatch objects
- Fixes a bug in BBTournament that was causing fatal PHP errors after saving a new tournament with teams already added
- Restructured the way BBTeam stores and filters BBTeam arrays to resolve bugs caused by stale cached results
- Adds
$tournament->freewins
and$tournament->freewins()
for returning freewin team objects
-
result
table for api cache is now created as longtext -
BBDev
now extracts data before dumping objects (to avoid fatal serialization errors) -
save()
anddelete()
now clear list and id cache- Resolves issue of stale list results
-
Model list results now honor custom classes defined in
BBConfiguration
-
New method:
$tournament->count()
- Returns the total number of tournaments created by your account
-
$team->notes
now automatically automatically encoded and decoded as json\ -
$tournament->teams()
now returns FreeWins if you set the 3rd parameter ($freewins
) totrue
-
Adds
BBSimpleModel::SERVICE_LIST
for consistency
- $tournament->hidden is now automatically automatically encoded and decoded as json
-
Adds
$bb->tournament->on_create('url here')
callback- Triggered when tournaments are created the account associated with the api_key
-
Adds
$bb->config
magic property- Returns the current configuration object (
BBConfiguration
)
- Returns the current configuration object (
-
Adds
BBCache::TTL_*
constants, simple TTL values for certain time periods- For example,
BBCache::TTL_WEEK
can be used to cache an API response for 1 week
- For example,
Adds Development Mode
-
Call
$bb->enable_dev_mode()
to enable$bb->disable_dev_mode()
to disable, as you may have guessed
-
Automatically displays binarybeast-related errors
Replaced get_called_class()
with get_class($this)
- This was done in order to make the library compatible with
PHP 5.2
Removed some debugging output in BBModel that happened to have php 5.4-only syntax
Documented some fields that the API recently exposed to the public API
Classes Affected:
-
- Adds
map_icon
,map_icon
, andgame_code
- Adds
-
- Notable additions:
genre
,genre_abbreviation
,parent_id
, and some new setting values
- Notable additions:
-
- Adds
games
, an array of games associated with the map (includes games that inherit the map)
- Adds
-
- Adds
games
, an array of games associated with the race (includes games that inherit the race)
- Adds
- Added support for loading and setting participant races in BBTeam
-
Fixed a bug that caused
BBMatch::$winner
to return NULL from existing match objects- The issue was actually in BBModel::__get()
-
Added / Fixed some of the documentation
-
Renamed BBMatch::$round and BBMatch::round()
BBMatch::$round
property renamed toBBMatch::$round_format
BBMatch::round()
method renamed toBBMatch::round_format()
-
Added
BBMatch::$round
property- This is a simple integer telling you which round the match was played in
- Previous you would have had to evaluate
$match->round->round
to see the round number
- Previous you would have had to evaluate
- This is a simple integer telling you which round the match was played in
-
Added custom callback support
- Added callback registration methods to BBTournament
-
Added methods for fetching bracket/group data in BBTournament
- Completely re-built Object Oriented library