* * row manager for templates * * template_id [INTEGER] The primary key for templates * app_id [INTEGER] Describes which app this template belongs to * template_key [STRING] key for template * template_isactive [BOOL] is the template active or not? * label_key [STRING] key for the label */ $EmailTemplate = new RowManager_EmailTemplateManager(); $EmailTemplate->dropTable(); $EmailTemplate->createTable(); /*[RAD_DAOBJ_TABLE]*/ $EmailTemplate->setAppID('moduleEmailTemplates'); $EmailTemplate->setTemplateKey(ADJUSTMENT_RESPONSE_TEMPLATE); $EmailTemplate->setIsActive(1); $EmailTemplate->setLabelKey('[adjustment_response]'); $EmailTemplate->createNewEntry(); $EmailTemplate->clearValues(); $EmailTemplate->setAppID('moduleEmailTemplates'); $EmailTemplate->setTemplateKey(UPDATE_RESPONSE_TEMPLATE); $EmailTemplate->setIsActive(1); $EmailTemplate->setLabelKey('[update_response]'); $EmailTemplate->createNewEntry(); $EmailTemplate->clearValues(); $EmailTemplate->setAppID('moduleEmailTemplates'); $EmailTemplate->setTemplateKey(UPDATE_REQUEST_TEMPLATE); $EmailTemplate->setIsActive(1); $EmailTemplate->setLabelKey('[update_request]'); $EmailTemplate->createNewEntry(); $EmailTemplate->clearValues();