Esempio n. 1
0
 public function getTemplate(Kwf_Component_Data $component, $type)
 {
     if ($type == 'Component') {
         $mailType = 'Mail.' . $this->getRenderFormat();
     } else {
         if ($type == 'Partial') {
             $mailType = 'Partial.' . $this->getRenderFormat();
         }
     }
     $template = Kwc_Abstract::getTemplateFile($component->componentClass, $mailType);
     if (!$template) {
         $template = parent::getTemplate($component, $type);
     }
     return $template;
 }
 public function getTemplate(Kwf_Component_Data $component, $type)
 {
     if ($type == 'Component') {
         $tpl = 'Component.exp';
     } else {
         if ($type == 'Partial') {
             $tpl = 'Partial.exp';
         }
     }
     $template = Kwc_Abstract::getTemplateFile($component->componentClass, $tpl);
     if (!$template) {
         $template = parent::getTemplate($component, $type);
     }
     return $template;
 }