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 MDirectory

Encapsulates the access on directories.

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

Direct 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/MDirectory.php
Methods summary
public
# __construct( $p_sPath )

Overrides

webfilesframework\core\datasystem\file\system\MFile::__construct()
public array
# getFiles( )

Returns the names of all files in the directory as an array.

Returns the names of all files in the directory as an array.

Returns

array
array with file objects

Throws

Exception
public array
# getLatestFiles( $count )

Parameters

$count

Returns

array

Throws

Exception
public array
# getFileNames( )

Returns the names of all files in the directory as an array.

Returns the names of all files in the directory as an array.

Returns

array
with filenames

Throws

Exception
public array
# getSubdirectories( )

Returns the subdirectories of the current directory.

Returns the subdirectories of the current directory.

Returns

array
list of directories
public
# create( )

Creates the present directory.

Creates the present directory.

public webfilesframework\core\datasystem\file\system\MDirectory
# createSubDirectoryIfNotExists( $p_sName )

Creates a subdirectory in the present directory.

Creates a subdirectory in the present directory.

Parameters

$p_sName

Returns

webfilesframework\core\datasystem\file\system\MDirectory
public String
# getPath( )

Returns the manually defined name of the folder.

Returns the manually defined name of the folder.

Returns

String
folderName

Overrides

webfilesframework\core\datasystem\file\system\MFile::getPath()
public boolean
# exists( )

Checks if the present directory exists or not.

Checks if the present directory exists or not.

Returns

boolean
Returns if the present directory exists or not.

Overrides

webfilesframework\core\datasystem\file\system\MFile::exists()
public
# isWritable( )
Methods inherited from webfilesframework\core\datasystem\file\system\MFile
__toString(), containsFileseperator(), delete(), extractFileName(), extractFolderName(), getContent(), getDate(), getExtension(), getFolder(), getName(), renameTo(), setDate(), writeContent()
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 $m_sPath
#
Properties inherited from webfilesframework\core\datasystem\file\system\MFile
$m_dDate, $m_sFileName, $m_sFolderName
Properties inherited from webfilesframework\core\datasystem\file\format\MWebfile
$m_iId, $m_iTime
API documentation generated by ApiGen