This class defines the interface for all elgg data repositories.  
 More...
This class defines the interface for all elgg data repositories. 
Definition at line 8 of file Filestore.php.
 
◆ close()
  
  
      
        
          | Elgg\Filesystem\Filestore::close  | 
          ( | 
            | 
          $f | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
 
◆ delete()
  
  
      
        
          | Elgg\Filesystem\Filestore::delete  | 
          ( | 
          \ElggFile  | 
          $file,  | 
         
        
           | 
           | 
          bool  | 
          $follow_symlinks = true  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
abstract   | 
  
 
Delete the file associated with a given file handle. 
- Parameters
 - 
  
    | \ElggFile | $file | The file  | 
    | bool | $follow_symlinks | If true, will also delete the target file if the current file is a symlink  | 
  
   
- Returns
 - bool 
 
Reimplemented in Elgg\Filesystem\Filestore\DiskFilestore.
 
 
◆ eof()
  
  
      
        
          | Elgg\Filesystem\Filestore::eof  | 
          ( | 
            | 
          $f | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
 
◆ exists()
  
  
      
        
          | Elgg\Filesystem\Filestore::exists  | 
          ( | 
          \ElggFile  | 
          $file | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
 
◆ getFilenameOnFilestore()
  
  
      
        
          | Elgg\Filesystem\Filestore::getFilenameOnFilestore  | 
          ( | 
          \ElggFile  | 
          $file | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
 
◆ getFileSize()
  
  
      
        
          | Elgg\Filesystem\Filestore::getFileSize  | 
          ( | 
          \ElggFile  | 
          $file | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
 
◆ getParameters()
  
  
      
        
          | Elgg\Filesystem\Filestore::getParameters  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
 
◆ grabFile()
  
  
      
        
          | Elgg\Filesystem\Filestore::grabFile  | 
          ( | 
          \ElggFile  | 
          $file | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
 
◆ open()
  
  
      
        
          | Elgg\Filesystem\Filestore::open  | 
          ( | 
          \ElggFile  | 
          $file,  | 
         
        
           | 
           | 
          string  | 
          $mode  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
abstract   | 
  
 
Attempt to open the file $file for storage or writing. 
- Parameters
 - 
  
    | \ElggFile | $file | A file  | 
    | string | $mode | "read", "write", "append" | 
  
   
- Returns
 - mixed A handle to the opened file or false on error. 
 
Reimplemented in Elgg\Filesystem\Filestore\DiskFilestore.
 
 
◆ read()
  
  
      
        
          | Elgg\Filesystem\Filestore::read  | 
          ( | 
            | 
          $f,  | 
         
        
           | 
           | 
          int  | 
          $length,  | 
         
        
           | 
           | 
          int  | 
          $offset = 0  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
abstract   | 
  
 
Read data from a filestore. 
- Parameters
 - 
  
    | mixed | $f | The file handle  | 
    | int | $length | Length in bytes to read.  | 
    | int | $offset | The optional offset. | 
  
   
- Returns
 - mixed String of data or false on error. 
 
Reimplemented in Elgg\Filesystem\Filestore\DiskFilestore.
 
 
◆ seek()
  
  
      
        
          | Elgg\Filesystem\Filestore::seek  | 
          ( | 
            | 
          $f,  | 
         
        
           | 
           | 
          int  | 
          $position  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
abstract   | 
  
 
 
◆ setParameters()
  
  
      
        
          | Elgg\Filesystem\Filestore::setParameters  | 
          ( | 
          array  | 
          $parameters | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
 
◆ tell()
  
  
      
        
          | Elgg\Filesystem\Filestore::tell  | 
          ( | 
            | 
          $f | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
 
◆ write()
  
  
      
        
          | Elgg\Filesystem\Filestore::write  | 
          ( | 
            | 
          $f,  | 
         
        
           | 
           | 
          string  | 
          $data  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
abstract   | 
  
 
Write data to a given file handle. 
- Parameters
 - 
  
    | mixed | $f | The file handle - exactly what this is depends on the file system  | 
    | string | $data | The binary string of data to write | 
  
   
- Returns
 - int Number of bytes written 
 
 
 
The documentation for this class was generated from the following file: