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

Class: MediaSearch_File_Folder

Source Location: /MediaSearch/File/Folder.php

Class Overview

MediaSearch_File_Abstract
   |
   --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).


Author(s):

Copyright:

  • Copyright (c) 2009 Sven Strittmatter

Constants

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: MediaSearch_File_Abstract

MediaSearch_File_Abstract::__construct()
Requires a filename as string or an SplFileInfo object of a file.

Class Details

[line 36]
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).



Tags:

copyright:  Copyright (c) 2009 Sven Strittmatter


[ Top ]


Class Methods


constructor __construct [line 51]

MediaSearch_File_Folder __construct( $fileInfo)



Tags:

see:  MediaSearch_File_Abstract
access:  public


Overrides MediaSearch_File_Abstract::__construct() (Requires a filename as string or an SplFileInfo object of a file.)

Parameters:

   $fileInfo  

[ Top ]

method acceptVisitor [line 83]

void acceptVisitor( MediaSearch_File_Visitor $visitor)

Implements MediaSearch_Interface_Visitable.

Lets the visitor visit all files if there are any.




Tags:

access:  public


Parameters:


[ Top ]

method addFile [line 62]

void addFile( MediaSearch_File_Abstract $file)

Adds files as childs to the node.



Tags:

access:  public


Parameters:


[ Top ]

method getFiles [line 97]

array getFiles( )

Returns the files if there are any



Tags:

access:  public


[ Top ]

method hasFiles [line 72]

bool hasFiles( )

Returns whether this node has childs or not.



Tags:

access:  public


[ Top ]


Class Constants

TRACE_LELVEL =  24

[line 37]


[ Top ]



Documentation generated on Mon, 17 Aug 2009 14:52:55 +0200 by phpDocumentor 1.4.2