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

Class: Folder

Source Location: /filesystem/Folder.class.php

Class Overview


A class to manage folder in a filesystemtree.


Author(s):

Version:

  • 0.1.25

Copyright:

  • Copyright (c) 2003 Daniel Plücken <daniel@debakel.net>

    This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License.

    This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Variables

Methods



Class Details

[line 47]
A class to manage folder in a filesystemtree.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  0.1.25
copyright:  

Copyright (c) 2003 Daniel Plücken <daniel@debakel.net>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

license:  GNU Lesser General Public License


[ Top ]


Class Variables

$files =

[line 73]



Tags:

access:  public

Type:   array


[ Top ]

$folder =

[line 68]



Tags:

access:  public

Type:   array


[ Top ]

$name =

[line 58]



Tags:

access:  public

Type:   string


[ Top ]

$parentfolder =

[line 63]



Tags:

access:  public

Type:   Folder


[ Top ]

$path =

[line 53]



Tags:

access:  public

Type:   string


[ Top ]



Class Methods


constructor Folder [line 88]

Folder Folder( string $name, object $parent)

Constructor



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.0
access:  public


Parameters:

string   $name  
object   $parent  

[ Top ]

method echoNameQueque [line 226]

void echoNameQueque( )

Prints out a dirty formatted list of all folder and files that this folder contains. All contents of containing folder will be printed too because of recursive invocation.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.0
access:  public


[ Top ]

method getFilenames [line 142]

array getFilenames( )

Returns the names of files that this folder contains by an array.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.0
access:  public


[ Top ]

method getFilesArray [line 193]

array &getFilesArray( )

Returns the file objects of this folder object in pre-order.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.25
access:  public


[ Top ]

method getFoldernames [line 122]

array getFoldernames( )

Returns the names of folder that this folder contains by an array.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.0
access:  public


[ Top ]

method getName [line 178]

string getName( )

Returns the foldername of this folder object.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.0
access:  public


[ Top ]

method getPath [line 163]

string getPath( )

Returns the path to the folder of this folder object including it selfs name.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.0
access:  public


[ Top ]

method setParentFolder [line 107]

void setParentFolder( &$objRef, Folder $objRef)

Sets the parent folder of this folder object that there is a back reference up to the root of the filesystem tree,



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.0
access:  protected


Parameters:

Folder   $objRef   The reference to the folder object that contains this folder.
   &$objRef  

[ Top ]


Documentation generated on Thu, 05 Jun 2008 19:11:40 +0200 by phpDocumentor 1.4.1