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

Class: DCSVParser

Source Location: /Parsers/DCSVParser.php

Class Overview

DObject
   |
   --DParserBase
      |
      --DCSVParser

CSV Parsing class


Variables

Constants

Methods


Inherited Constants

Inherited Variables

Inherited Methods

Class: DParserBase

DParserBase::__construct()
Constructor
DParserBase::clearTemp()
Deletes temp file
DParserBase::getFileData()
Get file content
DParserBase::getFileName()
Gets the file name
DParserBase::parse()
Parse
DParserBase::setFileData()
Sets the xml srting to be parsed
DParserBase::setFileName()
Sets the file name to be parsed

Class: DObject

DObject::__construct()
Constructor
DObject::debug()
Debig
DObject::getClassMembers()
Gets member variables of the instance
DObject::getClassMemberType()
Gets class member type
DObject::getClassMethods()
Gets classes of the class
DObject::getClassName()
Gets class name
DObject::PHPSerialize()
Gets serialized string of the class
DObject::trace()
Trace
DObject::__destruct()
Descructor
DObject::__toString()
Returns String equivalent of the object.

Class Details

[line 16]
CSV Parsing class



[ Top ]


Class Variables

$content = array()

[line 34]

Data



Tags:

access:  public

Type:   array


[ Top ]

$header = array()

[line 27]

Headers of the CSV file

The first line of the file




Tags:

access:  public

Type:   array


[ Top ]



Class Methods


constructor __construct [line 42]

DCSVParser __construct( [string $fileName = null])

Constructor



Tags:

access:  public


Overrides DParserBase::__construct() (Constructor)

Parameters:

string   $fileName  

[ Top ]

method init [line 54]

void init( )

Init



Tags:

access:  public


[ Top ]

method parse [line 70]

void parse( [string $elementDelimiter = ","], [string $lineDelimiter = "\n"], [string $stringDelimiter = "\""], [ $orderWay = PHP_DCSVPARSER_ORDER_WAY])

Parses the data

Parses data and populates header and content member variables




Tags:

access:  public


Overrides DParserBase::parse() (Parse)

Parameters:

string   $elementDelimiter  
string   $lineDelimiter  
string   $stringDelimiter  
   $orderWay  

[ Top ]


Class Constants

ORDER_BY_NAME =  -1

[line 17]


[ Top ]

ORDER_BY_POSITION =  -2

[line 18]


[ Top ]



Documentation generated on Sat, 17 Apr 2010 22:03:39 +0300 by phpDocumentor 1.4.3