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

Class: MediaSearch_File_Visitor

Source Location: /MediaSearch/File/Visitor.php

Class Overview


Visits a file tree (an object of type MediaSearch_File_Abstract) and colletcts informations into the MediaSearch_Scan_List object.


Author(s):

Copyright:

  • Copyright (c) 2009 Sven Strittmatter

Implements interfaces:

Constants

Methods



Class Details

[line 44]
Visits a file tree (an object of type MediaSearch_File_Abstract) and colletcts informations into the MediaSearch_Scan_List object.

This class is part of a visitor pattern implementation (see GoF).




Tags:

copyright:  Copyright (c) 2009 Sven Strittmatter
usedby:  ScannerApplication


[ Top ]


Class Methods


constructor __construct [line 62]

MediaSearch_File_Visitor __construct( )

Generates the MediaSearch_Scan_List object we use to hold the collected informations from the file tree.



Tags:

access:  public


[ Top ]

method addScannedFile [line 89]

void addScannedFile( $fileInfo, int $type)

Adds a MediaSearch_Scan_FileMeta object to the scanned files list object.

This is performed by the vissited subject while visiting it.




Tags:

access:  public


Parameters:

SplFileInfo   $fileInfo  
int   $type  

[ Top ]

method getFileList [line 100]

MediaSearch_Scan_List getFileList( )

Returns the scanned file list object with all collected data.



Tags:

access:  public


[ Top ]

method visit [line 72]

void visit( $visitingSubject)

This method is called from the visited subjects to join the visiting.



Tags:

access:  public


Parameters:

MediaSearch_Interface_Visitable   $visitingSubject  

[ Top ]


Class Constants

TRACE_LELVEL =  27

[line 45]


[ Top ]



Documentation generated on Mon, 17 Aug 2009 14:54:27 +0200 by phpDocumentor 1.4.2