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

Class: DParserBase

Source Location: /Parsers/DParserBase.php

Class Overview

DObject
   |
   --DParserBase

Base parsing class


Author(s):

Variables

Methods


Child classes:

DCSVParser
CSV Parsing class
DXMLParser
Base xml parsing class

Inherited Constants

Inherited Variables

Inherited Methods

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 25]
Base parsing class



Tags:

abstract:  


[ Top ]


Class Variables

$_extension =  ""

[line 38]

Extension for the temp file



Tags:

access:  protected

Type:   string


[ Top ]

$_fileName =  null

[line 31]

Name of the file to be parsed



Tags:

access:  protected

Type:   string


[ Top ]

$_fileNamesInRow = array()

[line 45]

File names used to parse the file.

Here are the names of all files, parsed in the latest cycle of parsing




Tags:

access:  protected

Type:   string


[ Top ]



Class Methods


constructor __construct [line 53]

DParserBase __construct( [string $fileName = null])

Constructor



Tags:

access:  public


Overridden in child classes as:

DCSVParser::__construct()
Constructor
DXMLParser::__construct()
Class constructor
DGDConfigParser::__construct()
Class constructor
DMagickConfigParser::__construct()
Class constructor
DRSSAbstractReader::__construct()
Constructor
DXMLCacheParser::__construct()
Constructor
DShellConfigParser::__construct()
Class constructor
DXMLCachedSimpleShell::__construct()
Class constructor
DActionsConfigParser::__construct()
Class constructor
DXMLSimpleShell::__construct()
Class constructor
DMultiLang::__construct()
Class constructor

Overrides DObject::__construct() (Constructor)

Parameters:

string   $fileName  

[ Top ]

method clearTemp [line 131]

void clearTemp( )

Deletes temp file



Tags:

access:  public


[ Top ]

method getFileData [line 121]

string getFileData( )

Get file content



Tags:

access:  public


[ Top ]

method getFileName [line 111]

string getFileName( )

Gets the file name



Tags:

access:  public


[ Top ]

method parse [line 68]

array parse( )

Parse



Tags:

abstract:  
access:  public


Overridden in child classes as:

DCSVParser::parse()
Parses the data
DXMLParser::parse()
Parses the XML file and returns an associative array. Null if file cannot be opened.
DRSSAbstractReader::parse()
Parsers the rss file and returns and analyzes the rss file for the version
DRSSReader::parse()
Parses the data and returns the success state from analyze method
DXMLCacheParser::parse()
Parses the XML file and returns an associative array. Null if file cannot be opened.

[ Top ]

method setFileData [line 90]

void setFileData( string $fileData)

Sets the xml srting to be parsed



Tags:

access:  public


Parameters:

string   $fileData   XML string

[ Top ]

method setFileName [line 76]

void setFileName( string $fileName)

Sets the file name to be parsed



Tags:

access:  public


Parameters:

string   $fileName   Name of the file

[ Top ]


Documentation generated on Sat, 17 Apr 2010 22:08:44 +0300 by phpDocumentor 1.4.3