Blame view

common/components/archives/ArchiveReader.php 562 Bytes
8f043ab6   Mihail   add classes to wo...
1
2
3
4
5
6
7
  <?php
  /**
   * Created by PhpStorm.
   * User: Tsurkanov
   * Date: 03.11.2015
   * Time: 14:48
   */
c4da20f0   Mihail   temp commit - tes...
8
  namespace common\components\archives;
8f043ab6   Mihail   add classes to wo...
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  abstract class ArchiveReader
  {
  
      protected $extracted_files = [];
  
      public abstract function open( $file, $password = '');
  
      public abstract function extractTo($destination);
  
      public static abstract function getExtension();
  
      public  function getExtractedFiles(){
          return $this->extracted_files;
      }
      public  function setExtractedFiles($name, $ext){
          $this->extracted_files[$name] = $ext;
      }
  
  }