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

Class: CSVFiles

Source Location: /filesystem/CSVFiles.class.php

Class Overview

Files
   |
   --CSVFiles

A class to manage files with comma separated values.


Author(s):

Version:

  • 0.1.22

Copyright:

  • Copyright (c) 2006 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


Inherited Variables

Inherited Methods

Class: Files

Files::Files()
Constructor
Files::deleteTmp()
Deletes the temporary file of this object.
Files::equals()
Compares the given Files object with this one. If both equal each other it will be returned true, otherwise false. The two file objects will be accounted as equal, if the the filenames and pathes match each other.
Files::get()
Returns the content of this file object. This function is an alias for the function getContent().
Files::getContent()
Returns the content of this file object.
Files::getExtension()
Returns the file extension of the given filename.
Files::getFilesize()
Sets the content of this file object.
Files::getName()
Returns the filename of this file object.
Files::getPath()
Returns the path to the file of this file object.
Files::load()
Loads the content of this file object from the filesystem and sets the content to this object.
Files::save()
Saves the file of this object.
Files::saveAs()
Saves the file of this object with given name.
Files::saveTmp()
Saves the file of this object in a temporary file.
Files::setContent()
Sets the content of this file object.
Files::setFilesize()
Sets the content of this file object.
Files::setParentFolder()
Sets the parent folder of this file object that there is a back reference up to the root of the filesystem tree,

Class Details

[line 58]
A class to manage files with comma separated values.



Tags:

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

Copyright (c) 2006 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

since:  0.9.0.7
license:  GNU Lesser General Public License


[ Top ]


Class Variables

$cols =  0

[line 94]



Tags:

access:  public

Type:   integer


[ Top ]

$content_arr = array()

[line 88]



Tags:

access:  public

Type:   array


[ Top ]

$enclosing_char =  "\""

[line 70]



Tags:

access:  public

Type:   char


[ Top ]

$escape_char =  "\\\\"

[line 76]



Tags:

access:  public

Type:   char


[ Top ]

$line_terminator_char =  "\r\n"

[line 82]



Tags:

var:  line_terminator_char
access:  public

Type:   char


[ Top ]

$separator_char =  ";"

[line 64]



Tags:

access:  public

Type:   char


[ Top ]



Class Methods


constructor CSVFiles [line 111]

CSVFiles CSVFiles( string $path, [string $filename = ""], string $path_and_filename)

Constructor



Tags:

version:  1.0
since:  0.1.0
access:  public


Parameters:

string   $path_and_filename  
string   $path  
string   $filename  

[ Top ]

method addCol [line 166]

void addCol( string $str_val)

Stores the number of columns of this csv-file object.



Tags:

version:  1.0
since:  0.1.2
access:  public


Parameters:

string   $str_val  

[ Top ]

method getCols [line 150]

integer getCols( )

Returns the number of columns of this csvfile object.



Tags:

version:  1.0
since:  0.1.2
access:  public


[ Top ]

method getContent [line 218]

string &getContent( )

Returns the content of this file object.



Tags:

version:  1.0
since:  0.1.2
access:  public


Overrides Files::getContent() (Returns the content of this file object.)

[ Top ]

method headerForExcel [line 199]

void headerForExcel( )

Sets the header for an excel output.



Tags:

version:  1.0
since:  0.1.22
access:  public


[ Top ]

method setCols [line 136]

void setCols( $int_cols)

Stores the number of columns of this csv-file object.



Tags:

version:  1.0
since:  0.1.2
access:  public


Parameters:

   $int_cols  

[ Top ]


Documentation generated on Thu, 05 Jun 2008 19:10:31 +0200 by phpDocumentor 1.4.1