public function getAllExports() { $exportRecords = AmForms_ExportRecord::model()->ordered()->findAll(); if ($exportRecords) { return AmForms_ExportModel::populateModels($exportRecords); } return null; }