PHP Classes

instructions for use

Recommend this page to a friend!

      PHP Cloud Storage Abstraction  >  All threads  >  instructions for use  >  (Un) Subscribe thread alerts  
Subject:instructions for use
Summary:instructions for use
Author:Massimo Gagliardi
Date:2018-04-17 20:19:50

  1. instructions for use   Reply   Report abuse  
Picture of Massimo Gagliardi Massimo Gagliardi - 2018-04-17 20:19:50
I didn't understand how to use this class; nothing example works Is't possible to have some suggestions? Thanks in advance
Massimo Gagliardi

  2. Re: instructions for use   Reply   Report abuse  
Picture of Alexandre Sinício Alexandre Sinício - 2018-04-17 20:39:01 - In reply to message 1 from Massimo Gagliardi
Hi Massimo,

The idea of this interface is that instead of hard-coding the procedures to store/retrieve files from the filesystem or cloud-storage, you delegate this responsibility to a specialized class. This way, your `user` class (for example) doesn't need to know where/how files are stored: you just say "hey AbstractStorage, do your magic and store this file for me". The same when retrieving files.

The example 01 (`01-adding-file.php`) should work fine out-of-the-box if you keep the folder structure.

If it is not working, could you tell me what errors/messages are being fired?