_afterSave() защищенный Метод

Save file to storage
protected _afterSave ( array $result ) : Mage_Core_Model_File_Uploader
$result array
Результат Mage_Core_Model_File_Uploader
Пример #1
0
 protected function _afterSave($result)
 {
     parent::_afterSave($result);
     if (!empty($result['path']) && !empty($result['file'])) {
         $imageProvider = CloudinaryImageProvider::fromConfiguration($this->_getConfigHelper()->buildConfiguration());
         $imageProvider->upload(Image::fromPath($result['path'] . DIRECTORY_SEPARATOR . $result['file']));
         $this->_trackSynchronisation($result['file']);
     }
     return $this;
 }