/**
* Loads a list of Email_Log for the specified parameters, returns an array of Email_Log elements
*
* @return array
*/
public function load()
{
$emailLogs = $this->db->fetchCol("SELECT id FROM email_log" . $this->getCondition() . $this->getOrder() . $this->getOffsetLimit(), $this->model->getConditionVariables());
$emailLogsArray = array();
foreach ($emailLogs as $log) {
$emailLogsArray[] = Model\Tool\Email\Log::getById($log);
}
$this->model->setEmailLogs($emailLogsArray);
return $emailLogsArray;
}