private function getEmailTemplate($emailTemplateIdentifire) { $template = new Application_Model_EmailTemplate(); $where = "identifire='{$emailTemplateIdentifire}'"; $row = $template->fetchRow($where); $array['body'] = $row->getBody(); $array['subject'] = $row->getSubject(); $array['name'] = $row->getName(); $array['identifire'] = $row->getIdentifire(); return $array; }
private function setModel($row) { $model = new Application_Model_EmailTemplate(); $model->setId($row->id)->setName($row->name)->setSubject($row->subject)->setIdentifire($row->identifire)->setBody($row->body); return $model; }