Overview

Namespaces

  • AnalyseModule
    • Models
  • BaseModule
    • Exceptions
    • Models
    • Repository
    • Services
  • DispatchModule
    • Helpers
    • Models
    • Tools
  • PredictModule
  • SearchModule

Classes

  • BaseModel
  • BlastModel
  • BlastXMLParser
  • BlatModel
  • Cppredict2Model
  • CppredictModel
  • FastaModel
  • FileModel
  • Overview
  • Namespace
  • Class

Class FileModel

FileModel is used for working with files

DispatchModule\Models\BaseModel
Extended by DispatchModule\Models\FileModel
Namespace: DispatchModule\Models
Located at DispatchModule/models/FileModel.php
Methods summary
public
# __construct( string $fileName )

Sets current file

Sets current file

Parameters

$fileName
public
# setFile( string $file )

Sets file name

Sets file name

Parameters

$file
filename
public string
# getFile( )

Get file name (including rel. path)

Get file name (including rel. path)

Returns

string
public
# createFile( )

Creates (and deletes content if the file exists) the file

Creates (and deletes content if the file exists) the file

public
# appendContent( String $data )

Content that will be added to the end of file

Content that will be added to the end of file

Parameters

$data
content
public String
# getContent( )

Return the file saved in the file

Return the file saved in the file

Returns

String
The content of the file
public
# deleteFile( )

Removes file

Removes file

public
# removeContent( )

Removes content

Removes content

public static boolean
# deleteOldFiles( string $path )

Deletes all old files (older than a week) from the directory

Deletes all old files (older than a week) from the directory

Parameters

$path
directory path

Returns

boolean
returns FALSE just in case the directory doesn't exist
API documentation generated by ApiGen