/**
* Loads a list of thumanils for the specicifies parameters, returns an array of Thumbnail elements
*
* @return array
*/
public function load()
{
$sites = [];
$sitesData = $this->db->fetchCol("SELECT id FROM sites" . $this->getCondition() . $this->getOrder() . $this->getOffsetLimit(), $this->model->getConditionVariables());
foreach ($sitesData as $siteData) {
$sites[] = Model\Site::getById($siteData);
}
$this->model->setSites($sites);
return $sites;
}