View Single Post
  #6  
Old 05-14-2015, 11:17 AM
 
xgarb xgarb is offline
 

eXpert
  
Join Date: Jul 2004
Location: UK
Posts: 263
 

Default Re: Duplicating File Attachments module

In the following...

Code:
/** * Get storage * * @return \XLite\Module\CDev\FileAttachments\Model\Product\Attachment\Storage */ public function getStorage() { if (!$this->storage) { $this->setStorage(new \XLite\Module\CDev\FileAttachments\Model\Product\Attachment\Storage); $this->storage->setAttachment($this); } return $this->storage; }

Am I right in thinking that the code creates a storage object and then adds the uploaded file to it?

I can't find setAttachment anywhere in the x5 source code to see what it's doing.
__________________
Core version: 5.5.xx
Reply With Quote