Definition at line 9 of file ElggFilestore.php.
 
◆ close()
  
  
      
        
          | ElggFilestore::close  | 
          ( | 
            | 
          $f | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
Close a given file handle. 
- Parameters
 - 
  
  
 
- Returns
 - bool 
 
Reimplemented in ElggDiskFilestore.
 
 
◆ delete()
  
  
      
        
          | ElggFilestore::delete  | 
          ( | 
          \ElggFile  | 
          $file | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
Delete the file associated with a given file handle. 
- Parameters
 - 
  
  
 
- Returns
 - bool 
 
Reimplemented in ElggDiskFilestore.
 
 
◆ eof()
Return a whether the end of a file has been reached. 
- Parameters
 - 
  
  
 
- Returns
 - boolean 
 
Reimplemented in ElggDiskFilestore.
 
 
◆ exists()
  
  
      
        
          | ElggFilestore::exists  | 
          ( | 
          \ElggFile  | 
          $file | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
Return whether a file physically exists or not. 
- Parameters
 - 
  
  
 
- Returns
 - bool 
 
Reimplemented in ElggDiskFilestore.
 
 
◆ getFilenameOnFilestore()
  
  
      
        
          | ElggFilestore::getFilenameOnFilestore  | 
          ( | 
          \ElggFile  | 
          $file | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
Return the filename of a given file as stored on the filestore. 
- Parameters
 - 
  
  
 
- Returns
 - string 
 
Reimplemented in ElggDiskFilestore.
 
 
◆ getFileSize()
  
  
      
        
          | ElggFilestore::getFileSize  | 
          ( | 
          \ElggFile  | 
          $file | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
Return the size in bytes for a given file. 
- Parameters
 - 
  
  
 
- Returns
 - int 
 
Reimplemented in ElggDiskFilestore.
 
 
◆ getParameters()
  
  
      
        
          | ElggFilestore::getParameters  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
Get the filestore's creation parameters as an associative array. 
Used for serialisation and for storing the creation details along side a file object.
- Returns
 - array 
 
Reimplemented in ElggDiskFilestore.
 
 
◆ grabFile()
  
  
      
        
          | ElggFilestore::grabFile  | 
          ( | 
          \ElggFile  | 
          $file | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
Get the contents of the whole file. 
- Parameters
 - 
  
    | mixed | $file | The file handle. | 
  
   
- Returns
 - mixed The file contents. 
 
Reimplemented in ElggDiskFilestore.
 
 
◆ open()
  
  
      
        
          | ElggFilestore::open  | 
          ( | 
          \ElggFile  | 
          $file,  | 
         
        
           | 
           | 
            | 
          $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 ElggDiskFilestore.
 
 
◆ read()
  
  
      
        
          | ElggFilestore::read  | 
          ( | 
            | 
          $f,  | 
         
        
           | 
           | 
            | 
          $length,  | 
         
        
           | 
           | 
            | 
          $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 ElggDiskFilestore.
 
 
◆ seek()
  
  
      
        
          | ElggFilestore::seek  | 
          ( | 
            | 
          $f,  | 
         
        
           | 
           | 
            | 
          $position  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
abstract   | 
  
 
Seek a given position within a file handle. 
- Parameters
 - 
  
    | mixed | $f | The file handle.  | 
    | int | $position | The position. | 
  
   
- Returns
 - void 
 
Reimplemented in ElggDiskFilestore.
 
 
◆ setParameters()
  
  
      
        
          | ElggFilestore::setParameters  | 
          ( | 
          array  | 
          $parameters | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
Set the parameters from the associative array produced by $this->getParameters(). 
- Parameters
 - 
  
    | array | $parameters | A list of parameters | 
  
   
- Returns
 - bool 
 
Reimplemented in ElggDiskFilestore.
 
 
◆ tell()
  
  
      
        
          | ElggFilestore::tell  | 
          ( | 
            | 
          $f | ) | 
           | 
         
       
   | 
  
abstract   | 
  
 
Return the current position in an open file. 
- Parameters
 - 
  
  
 
- Returns
 - int 
 
Reimplemented in ElggDiskFilestore.
 
 
◆ write()
  
  
      
        
          | ElggFilestore::write  | 
          ( | 
            | 
          $f,  | 
         
        
           | 
           | 
            | 
          $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. 
 
Reimplemented in ElggDiskFilestore.
 
 
The documentation for this class was generated from the following file: