public function setDataDefinition(a\DataDefinition $dd)
 {
     $this->definition_id = $dd->getId();
     $this->definition_path = $dd->getPath();
     return $this;
 }
 public function createContentType(ContentTypeContainer $parent, $name, PageConfigurationSet $pcs, MetadataSet $ms, DataDefinition $dd = NULL)
 {
     if (trim($name) == "") {
         throw new e\CreationErrorException(S_SPAN . c\M::EMPTY_ASSET_FACTORY_NAME . E_SPAN);
     }
     $asset = AssetTemplate::getContentType();
     $asset->contentType->name = $name;
     $asset->contentType->parentContainerPath = $parent->getPath();
     $asset->contentType->siteName = $parent->getSiteName();
     $asset->contentType->pageConfigurationSetPath = $pcs->getPath();
     $asset->contentType->metadataSetPath = $ms->getPath();
     if (isset($dd)) {
         $asset->contentType->dataDefinitionPath = $dd->getPath();
     }
     return $this->createAsset($asset, ContentType::TYPE, $this->getPath($parent, $name), $parent->getSiteName());
 }
 public function setDataDefinition(DataDefinition $dd = NULL)
 {
     if (isset($dd)) {
         $this->getProperty()->dataDefinitionId = $dd->getId();
         $this->getProperty()->dataDefinitionPath = $dd->getPath();
     } else {
         $this->getProperty()->dataDefinitionId = NULL;
         $this->getProperty()->dataDefinitionPath = NULL;
     }
     return $this;
 }