ApiPageSet lazy loads content models
authorErik Bernhardson <ebernhardson@wikimedia.org>
Wed, 14 Jan 2015 18:50:18 +0000 (10:50 -0800)
committerAnomie <bjorsch@wikimedia.org>
Fri, 23 Jan 2015 21:58:52 +0000 (21:58 +0000)
commit2ddd236cdf786f02283ef3ce4cc11777598fd55e
treea2adf669c5afa446511f926d0e0dd42d6a4eb1f9
parent9e0475ce8a03b61e6e500dd4da475ebf021ebba9
ApiPageSet lazy loads content models

A preceding patch, I7eff0bff, adjusts multiple Title methods to load the
content model from the database if it is not known.  This patch
adjusts ApiPageSet to query for the content model with the initial data
load rather than allowing the lazy loading to pull in the content
model one at a time as requested.
`
Bug: T86612
Change-Id: I9a9272da729d9323efde76a3c0a09f55127db537
includes/api/ApiPageSet.php