Esempio n. 1
0
 /**
  * Sets the template directory.
  *
  * @param $directory
  */
 public function setTemplateDirectory($directory)
 {
     // The directory will be null if a template is being loaded from storage.
     if ($directory == null) {
         $this->templateDirectory = realpath(find_tse_template($this->templateName));
         $this->loadPackageTemplate($this->templateDirectory);
         return;
     }
     $this->templateDirectory = realpath($directory);
     $this->loadPackageTemplate(realpath($directory));
 }
Esempio n. 2
0
 /**
  * Determines the template path.
  *
  * @return string
  */
 private function getTemplateArgumentPath()
 {
     if ($this->customTemplatePath !== null) {
         return str_finish($this->customTemplatePath, '/');
     }
     return str_finish(find_tse_template($this->getTemplateName()), '/');
 }