Exemplo n.º 1
0
 /**
  * @param \Cms\Data\TemplateSnippet $data
  */
 protected function setValuesFromData(TemplateSnippetData $data)
 {
     $this->setWebsiteId($data->getWebsiteId());
     $this->setId($data->getId());
     $this->setName($data->getName());
     $this->setDescription($data->getDescription());
     $this->setCategory($data->getCategory());
     $this->setContent($data->getContent());
     $this->setReadonly($data->isReadonly());
     $this->setSourceType($data->getSourceType());
     $this->setOverwritten($data->isOverwritten());
     $this->setBaseLayout($data->isBaseLayout());
     $this->setPageTypes($data->getPageTypes());
     $this->setPreviewImageUrl($data->getPreviewImageUrl());
 }