public function createXhtmlPage(Folder $parent, $name, $xhtml = "", ContentType $ct) { if (trim($name) == "") { throw new e\CreationErrorException(S_SPAN . c\M::EMPTY_PAGE_NAME . E_SPAN); } $asset = AssetTemplate::getXhtmlPage(); $asset->page->name = $name; $asset->page->parentFolderPath = $parent->getPath(); $asset->page->siteName = $parent->getSiteName(); $asset->page->contentTypePath = $ct->getPath(); if (trim($xhtml) != "") { $asset->page->xhtml = $xhtml; } return $this->createAsset($asset, Page::TYPE, $this->getPath($parent, $name), $parent->getSiteName()); }