Overview

Namespaces

  • webfilesframework
    • codegeneration
      • general
      • php
    • core
      • datastore
        • functions
          • filter
          • sorting
        • types
          • database
            • resultHandler
          • directory
          • googlecalendar
          • mail
          • remote
      • datasystem
        • database
        • file
          • format
            • media
              • image
                • handler
          • system
            • dropbox
      • datatypes
        • time
      • time
    • io
      • form
        • formItem
        • validation
        • webfile
      • request

Classes

  • MDirectory
  • MFile
  • Overview
  • Namespace
  • Class

Class MFile

description

webfilesframework\core\datasystem\file\format\MWebfile
Extended by webfilesframework\core\datasystem\file\system\MFile

Direct known subclasses

webfilesframework\core\datasystem\file\format\media\image\MImage, webfilesframework\core\datasystem\file\system\dropbox\MDropboxFile, webfilesframework\core\datasystem\file\system\MDirectory

Indirect known subclasses

webfilesframework\core\datasystem\file\system\dropbox\MDropboxDirectory
Namespace: webfilesframework\core\datasystem\file\system
Author: Sebastian Monzel < mail@sebastianmonzel.de >
Since: 0.1.7
Located at core/datasystem/file/system/MFile.php
Methods summary
public
# __construct( $fileName )
public
# containsFileseperator( $fileName )
public string
# getContent( )

Returns the content of the given file.

Returns the content of the given file.

Returns

string
file content
public
# writeContent( string $content, boolean $overwrite = false )

Writes content to harddrive.

Writes content to harddrive.

Parameters

$content
$overwrite
public
# exists( )

Checks if the file exists.

Checks if the file exists.

public static string
# extractFileName( string $filePath )

Parameters

$filePath

Returns

string
public static string
# extractFolderName( string $filePath )

Parameters

$filePath

Returns

string
public
# renameTo( $newFileName )
public
# delete( )

Deletes the specified file.

Deletes the specified file.

public
# getPath( )
public
# getName( )

Returns the given file name.

Returns the given file name.

public
# getFolder( )

Returns the given folder name.

Returns the given folder name.

public
# getExtension( )
public
# getDate( )
public
# setDate( $date )
public
# __toString( )
Methods inherited from webfilesframework\core\datasystem\file\format\MWebfile
classname(), createWebfileByClassname(), getAttributes(), getClassInformation(), getDataset(), getDatatypeFromAttributeName(), getGeograficPosition(), getId(), getSimplifiedAttributeName(), getTime(), isObject(), isSimpleDatatype(), marshall(), matchesTemplate(), presetForTemplateSearch(), setId(), setTime(), staticUnmarshall(), unmarshall()
Properties summary
protected string $m_sFolderName
# "./"
protected $m_sFileName
#
protected $m_dDate
#
Properties inherited from webfilesframework\core\datasystem\file\format\MWebfile
$m_iId, $m_iTime
API documentation generated by ApiGen