예제 #1
0
 public function setPhoto($photo)
 {
     $this->photo = $photo;
     if ($this->photo) {
         $this->photo->setParent($this->dir);
         $this->photo->setInvisible(TRUE);
     }
 }
예제 #2
0
 /**
  * @param FileEntity $image
  */
 public function setImage(FileEntity $image = NULL)
 {
     $this->image = $image;
     if ($this->image) {
         $this->image->setParent($this->dir);
         $this->image->setInvisible(TRUE);
     }
 }
예제 #3
0
 /**
  * @param \CmsModule\Content\Entities\FileEntity $file
  */
 private function setFile($file)
 {
     $this->file = $file;
     if ($this->file) {
         $this->file->setParent($this->invoice->dir);
         $this->file->setInvisible(TRUE);
     }
 }