MediaSearch_File
[ class tree: MediaSearch_File ] [ index: MediaSearch_File ] [ all elements ]

Class: MediaSearch_File_Abstract

Source Location: /MediaSearch/File/Abstract.php

Class Overview


An abstract file implemetnation. Thats part of tee composite pattern (see GoF for more information) used to build a file tree.


Author(s):

Copyright:

  • Copyright (c) 2009 Sven Strittmatter

Implements interfaces:

Variables

Constants

Methods


Child classes:

MediaSearch_File_File
Concrete implementation of a file. Objects of this type are leafes in a file tree. A file can have a type (see class constants). The type of a file is determined by its file name extension.
MediaSearch_File_Folder
Concrete implementation of a folder. Objects of this type are nodes in a file tree. A folder can have some files as chields. Theese could be files or folders. This is the composite part of the composite pattern (see GoF).

Class Details

[line 34]
An abstract file implemetnation. Thats part of tee composite pattern (see GoF for more information) used to build a file tree.



Tags:

copyright:  Copyright (c) 2009 Sven Strittmatter
abstract:  


[ Top ]


Class Variables

$fileInfo =

[line 43]

Holds the SplFileInfo object.



Tags:

access:  protected

Type:   SplFileInfo


[ Top ]



Class Methods


constructor __construct [line 54]

MediaSearch_File_Abstract __construct( mixed $fileInfo)

Requires a filename as string or an SplFileInfo object of a file.

If a string as parameter is passed a SplFileInfo object will be genarated automaticly.




Tags:

throws:  InvalidArgumentException If neither a filename string or a SplFileInfo is provided.
access:  public


Overridden in child classes as:

MediaSearch_File_File::__construct()
MediaSearch_File_Folder::__construct()

Parameters:

mixed   $fileInfo   SplFileInfo or string

[ Top ]


Class Constants

TRACE_LELVEL =  22

[line 35]


[ Top ]



Documentation generated on Mon, 17 Aug 2009 14:51:13 +0200 by phpDocumentor 1.4.2