public static function getAll() { $model = new FM_Models_FM_BannerTemplates(); $templates = $model->getAll(); $templatesArray = array(); foreach ($templates as $key => $values) { $templatesArray[] = new FM_Components_Util_BannerTemplate(array('id' => $values['id'])); } return $templatesArray; }