summaryrefslogtreecommitdiffstats
path: root/COPYING
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-05-09 15:42:58 +0200
committerHarald Eilertsen <haraldei@anduin.net>2021-05-09 15:42:58 +0200
commitd116e23de0efcd528226acf6dbe4c7cbc5c5698b (patch)
treea2249944821123a35de6e593c713c06648900c9d /COPYING
parent883fbfab5dd0f7fabfed008341acaa63f365b1dc (diff)
downloadgigologadmin-d116e23de0efcd528226acf6dbe4c7cbc5c5698b.tar.gz
gigologadmin-d116e23de0efcd528226acf6dbe4c7cbc5c5698b.tar.bz2
gigologadmin-d116e23de0efcd528226acf6dbe4c7cbc5c5698b.zip
Include info from venue in concerts.
This makes the concert a full object containing all relevant info, while we can still segment the data in the db. Instead of this: $concert = GiglogAdmin_Concert::get($concert_id); $venue = GiglogAdmin_Venue::get($concert->venue()); echo "{$concert->name()} @ {$venue->name()} : {$concert->cdate()}" You can now do: $concert = GiglogAdmin_Concert::get($concert_id); echo "{$concert->name()} @ {$concert->venue()->name()} : {$concert->cdate()}" And yeah, renamed Concert::find_cid() to Concert::get() and changed it's semantics somewhat. It now either returns the given concert if it exists, or NULL if it does not. Simpler function; simpler to use.
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions