/** * @return Webforge\Common\System\Dir */ public function getTarget() { if (!isset($this->target)) { $this->target = $this->deploymentsRoot->sub($this->project->getName() . ($this->variant ? '.' . $this->variant : NULL) . '/'); } return $this->target; }
protected function copyErrors() { // kopieren für (was auch immer) htdocs ist $target = $this->targetProject->getHtdocs()->sub('errors/'); if (!$target->exists()) { $this->psc->getHtdocs()->sub('errors/')->copy($target->create(), NULL, array('404.wurf1.html'), TRUE); } }
public function createHTMLPage() { $page = new \Psc\HTML\FrameworkPage(); $page->addCMSDefaultCSS(); $page->addCMSRequireJS($assetModus = $this->project->isBuilt() ? 'built' : 'development'); $page->setTitleForProject($this->project); $page->setLanguage($this->getLanguage()); return $page; }
protected function expandUrl($url) { if ($this->publicRequest) { $baseUrl = $this->project->getHostUrl('base'); } else { $baseUrl = $this->project->getHostUrl('cms'); } return $baseUrl . ltrim($url, '/'); }