Example #1
0
 /**
  * @param \Cms\Data\Media $data
  */
 protected function setValuesFromData(MediaData $data)
 {
     $this->setId($data->getId());
     $this->setWebsiteId($data->getWebsiteId());
     $this->setAlbumId($data->getAlbumId());
     $this->setName($data->getName());
     $this->setExtension($data->getExtension());
     $this->setFilesize($data->getSize());
     $this->setFile($data->getFile());
     $this->setLastModification($data->getLastmod());
     $this->setType($data->getType());
     $this->setDateUploaded($data->getDateUploaded());
     $this->setUrl($data->getUrl());
     $this->setIcon($data->getIconUrl());
     $this->setDownloadUrl($data->getDownloadUrl());
 }