Guest User

Untitled

a guest
Aug 10th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. class MyUploader{
  2. private $var1 = null;
  3. private $var2 = null;
  4. private $extensions = array(
  5. 0 => array("pdf","doc","docx")
  6. ,1 => array("dft","dxf","dwg")
  7. ,2 => array("step","igs","x_t")
  8. );
  9. [etc...]
  10.  
  11. function __construct(){
  12. $this->var1 = 'value1';
  13. $this->var2 = 'value2';
  14. [etc...]
  15. }
  16.  
  17. function store_file(){}
  18. function remove_file(){}
  19. }
  20.  
  21. $uploaders = array(
  22. 'ul1' => new Uploader()
  23. 'ul2' => new Uploader()
  24. etc..
  25. );
  26.  
  27. $uploaders[ul1]->store_file()
Add Comment
Please, Sign In to add comment